home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / hypercrd / hc1_2_x / expert22.sit / HyperExpert 2.2 / card_3191.txt < prev    next >
Text File  |  1990-10-05  |  185KB  |  6,531 lines

  1. -- card: 3191 from stack: in.2
  2. -- bmap block id: 3563
  3. -- flags: 4000
  4. -- background id: 2738
  5. -- name: full
  6. ----- HyperTalk script -----
  7. on openCard
  8.   put the script of this stack into x
  9.   if x = empty then
  10.     put the script of cd fld deletestack into y
  11.     set the script of this stack to y
  12.     answer "Making repairs to stack"
  13.     answer "It must be re-opened"
  14.     domenu "Quit Hypercard"
  15.   end if
  16.  
  17.   hide card fld yes7fld
  18.   hide card fld yes6fld
  19.   hide card fld yes5fld
  20.   hide card fld yes4fld
  21.   hide card fld no7fld
  22.   hide card fld no6fld
  23.   hide card fld no5fld
  24.   hide card fld no4fld
  25.   hide card fld deleted
  26.   hide card fld conclusion
  27.   hide card fld finished
  28.   hide card fld stackscr
  29.   hide card fld expertmenu
  30.   hide card fld deletestack
  31. end openCard
  32.  
  33.  
  34.  
  35. -- part 1 (field)
  36. -- low flags: 01
  37. -- high flags: 0002
  38. -- rect: left=57 top=98 right=111 bottom=117
  39. -- title width / last selected line: 0
  40. -- icon id / first selected line: 0 / 0
  41. -- text alignment: 0
  42. -- font id: 3
  43. -- text size: 9
  44. -- style flags: 0
  45. -- line height: 12
  46. -- part name: yes1
  47. ----- HyperTalk script -----
  48. on mouseUp
  49.   global qc, fldloc, cdname, aligntype, gocon, goconvar
  50.   set lockscreen to true
  51.   put card fld "yes1" into x
  52.  
  53.   if x is empty then
  54.     beep 1
  55.     answer "There is no answer here to work with"
  56.     exit mouseUp
  57.   end if
  58.   put card fld "ques2" into e
  59.   if e Γëá empty then
  60.     answer "There is already a path for this question" with "OK"
  61.     exit mouseUp
  62.   end if
  63.  
  64.  
  65.   answer "Work on this answer of this question" with "CANCEL" or "OK"
  66.   if it is "Cancel" then
  67.     exit mouseUp
  68.   end if
  69.  
  70.   put the short name of this card into cdname
  71.   if it is "OK" then
  72.     answer "Is this 1.Conclusion  2.Question?" with "1" or "2"
  73.     if it is "2" then
  74.       put "Question" into card fld label2
  75.       if cd fld "dqcount" Γëá 0 then
  76.         put item 1 of card fld dqcount into qc
  77.         if the number of items in card fld "dqcount" = 1 then
  78.           put 0 into card fld "dqcount"
  79.         else
  80.           delete item 1 of card fld "dqcount"
  81.         end if
  82.         put the script of card fld "finished" into p
  83.         put qc into card fld ques2
  84.         add 1 to card fld "ans count"
  85.       else
  86.  
  87.  
  88.  
  89.         put card fld "ans count" into qc
  90.         put the script of card fld "finished" into p
  91.  
  92.         add 1 to qc
  93.         put qc into card fld "ans count"
  94.         put qc into card fld ques2
  95.       end if
  96.  
  97.  
  98.  
  99.  
  100.  
  101.       put card fld ques2 into qcc
  102.       put the short name of me into fldloc
  103.  
  104.       put card fld fldloc into x
  105.       put card fld ques1 into qc
  106.  
  107.       go to card "ques"&qc
  108.       add 1 to qc
  109.       set the script of card button x to "on mouseUp" &return&"go to card ques"&qcc &return&"end mouseUp"
  110.  
  111.  
  112.       domenu "new card"
  113.       choose text tool
  114.       set textAlign to left
  115.       set textSize to 24
  116.       set textStyle to bold, underline
  117.  
  118.       click at 10,44
  119.       type "Question:"
  120.       choose button tool
  121.  
  122.  
  123.       domenu "new button"
  124.       set name of card button "new button" to "finished"
  125.       set rect of card button "finished" to 229,330,303,342
  126.       set script of card button "finished" to p
  127.       choose browse tool
  128.  
  129.       set the name of this card to "ques"&qcc
  130.  
  131.       domenu "new field"
  132.       set the name of card fld "" to "funny"
  133.       set the textAlign of card fld "funny" to aligntype
  134.       set the style of card fld funny to scrolling
  135.  
  136.       choose browse tool
  137.  
  138.  
  139.       click at 246,131
  140.     else
  141.       answer "Is this conclusion going to a question" with "Yes" or "No"
  142.       put it into gocon
  143.       put empty into goconvar
  144.       if gocon = "Yes" then
  145.         ask "Please enter the question number"
  146.         if it is empty then
  147.           exit mouseUp
  148.         end if
  149.  
  150.         put it into goconvar
  151.         repeat with x = 1 to the number of items in card fld dqcount
  152.           if goconvar = item x of card fld dqcount then
  153.             answer "You deleted question "&goconvar
  154.             exit mouseUp
  155.           end if
  156.         end repeat
  157.         if goconvar > card fld "ans count" then
  158.  
  159.           answer "There is no question "&goconvar
  160.           subtract 1 from card fld "cd count"
  161.           exit mouseUp
  162.  
  163.         end if
  164.       end if
  165.  
  166.  
  167.       put "Conclusion" into card fld label2
  168.       if card fld dccount Γëá 0 then
  169.         put item 1 of card fld dccount into qc
  170.         if the number of items in cd fld dccount = 1 then
  171.           put 0 into card fld dccount
  172.         else
  173.           delete item 1 of cd fld dccount
  174.         end if
  175.  
  176.         put the script of card fld "conclusion" into zz
  177.         put qc into card fld ques2
  178.         add 1 to cd fld "con count"
  179.       else
  180.  
  181.         put card fld "con count" into qc
  182.         put the script of card fld "conclusion" into zz
  183.         add 1 to qc
  184.  
  185.         put qc into card fld "con count"
  186.         put qc into card fld ques2
  187.       end if
  188.  
  189.  
  190.       put card fld ques2 into qcc
  191.       put the short name of me into fldloc
  192.  
  193.       put card fld fldloc into x
  194.       put card fld ques1 into qc
  195.  
  196.       go to card "ques"&qc
  197.  
  198.  
  199.       set the script of card button x to "on mouseUp" &return&"go to card con"&qcc &return&"end mouseUp"
  200.  
  201.  
  202.       --domenu "new background"
  203.       --set the name of this background to "questions"
  204.       domenu "new card"
  205.       choose text tool
  206.       set textAlign to left
  207.       set textSize to 24
  208.       set textStyle to bold, underline
  209.  
  210.       click at 10,44
  211.       type "Conclusion:"
  212.       choose button tool
  213.       domenu "new button"
  214.       set name of card button "new button" to "finished"
  215.       set rect of card button "finished" to 229,330,303,342
  216.       set script of card button "finished" to zz
  217.       choose browse tool
  218.  
  219.       set the name of this card to "con"&qcc
  220.  
  221.       domenu "new field"
  222.       set the name of card fld "" to "funny"
  223.       set the textAlign of card fld "funny" to aligntype
  224.       set the style of card fld funny to scrolling
  225.  
  226.       choose browse tool
  227.  
  228.       click at 246,131
  229.     end if
  230.   end if
  231.   set lockscreen to false
  232. end mouseUp
  233.  
  234.  
  235.  
  236. -- part 2 (field)
  237. -- low flags: 01
  238. -- high flags: 0002
  239. -- rect: left=57 top=174 right=186 bottom=117
  240. -- title width / last selected line: 0
  241. -- icon id / first selected line: 0 / 0
  242. -- text alignment: 0
  243. -- font id: 3
  244. -- text size: 9
  245. -- style flags: 0
  246. -- line height: 12
  247. -- part name: no1
  248. ----- HyperTalk script -----
  249. on mouseUp
  250.   global qc, fldloc, cdname, aligntype, gocon, goconvar
  251.   set lockscreen to true
  252.   put card fld "no1" into x
  253.   if x is empty then
  254.     beep 1
  255.     answer "There is no answer here to work with"
  256.     exit mouseUp
  257.   end if
  258.   put card fld "ques3" into e
  259.   if e Γëá empty then
  260.     answer "There is already a path for this question" with "OK"
  261.     exit mouseUp
  262.   end if
  263.  
  264.   answer "Work on this answer of this question" with "CANCEL" or "OK"
  265.   if it is "Cancel" then
  266.     exit mouseUp
  267.   end if
  268.  
  269.   put the short name of this card into cdname
  270.   if it is "OK" then
  271.     answer "Is this  1.Conclusion   2.Question?" with "1" or "2"
  272.     if it is "2" then
  273.       put "Question" into card fld label3
  274.       if cd fld "dqcount" Γëá 0 then
  275.         put item 1 of card fld dqcount into qc
  276.         if the number of items in card fld "dqcount" = 1 then
  277.           put 0 into card fld "dqcount"
  278.         else
  279.           delete item 1 of card fld "dqcount"
  280.         end if
  281.         put the script of card fld "finished" into p
  282.         put qc into card fld ques3
  283.         add 1 to card fld "ans count"
  284.       else
  285.  
  286.  
  287.  
  288.         put card fld "ans count" into qc
  289.         put the script of card fld "finished" into p
  290.  
  291.         add 1 to qc
  292.         put qc into card fld "ans count"
  293.         put qc into card fld ques3
  294.       end if
  295.  
  296.  
  297.  
  298.  
  299.  
  300.       put card fld ques3 into qcc
  301.       put the short name of me into fldloc
  302.  
  303.       put card fld fldloc into x
  304.       put card fld ques1 into qc
  305.  
  306.       go to card "ques"&qc
  307.       add 1 to qc
  308.       set the script of card button x to "on mouseUp" &return&"go to card ques"&qcc &return&"end mouseUp"
  309.  
  310.       go to last card
  311.       domenu "new card"
  312.       choose text tool
  313.       set textAlign to left
  314.       set textSize to 24
  315.       set textStyle to bold, underline
  316.  
  317.       click at 10,44
  318.       type "Question:"
  319.       choose button tool
  320.       domenu "new button"
  321.       set name of card button "new button" to "finished"
  322.       set rect of card button "finished" to 229,330,303,342
  323.       set script of card button "finished" to p
  324.       choose browse tool
  325.  
  326.       set the name of this card to "ques"&qcc
  327.  
  328.       domenu "new field"
  329.       set the name of card fld "" to "funny"
  330.       set the textAlign of card fld "funny" to aligntype
  331.       set the style of card fld funny to scrolling
  332.  
  333.       choose browse tool
  334.  
  335.       click at 246,131
  336.     else
  337.  
  338.  
  339.  
  340.       answer "Is this conclusion going to a question" with "Yes" or "No"
  341.       put it into gocon
  342.       put empty into goconvar
  343.       if gocon = "Yes" then
  344.         ask "Please enter the question number"
  345.         if it is empty then
  346.           exit mouseUp
  347.         end if
  348.  
  349.         put it into goconvar
  350.         repeat with x = 1 to the number of items in card fld dqcount
  351.           if goconvar = item x of card fld dqcount then
  352.             answer "You deleted question "&goconvar
  353.             exit mouseUp
  354.           end if
  355.         end repeat
  356.         if goconvar > card fld "ans count" then
  357.  
  358.           answer "There is no question "&goconvar
  359.           subtract 1 from card fld "cd count"
  360.           exit mouseUp
  361.  
  362.         end if
  363.  
  364.       end if
  365.  
  366.  
  367.  
  368.  
  369.       put "Conclusion" into card fld label3
  370.       if card fld dccount Γëá 0 then
  371.         put item 1 of card fld dccount into qc
  372.         if the number of items in cd fld dccount = 1 then
  373.           put 0 into card fld dccount
  374.         else
  375.           delete item 1 of cd fld dccount
  376.         end if
  377.  
  378.         put the script of card fld "conclusion" into zz
  379.         put qc into card fld ques3
  380.         add 1 to cd fld "con count"
  381.       else
  382.  
  383.         put card fld "con count" into qc
  384.         put the script of card fld "conclusion" into zz
  385.         add 1 to qc
  386.  
  387.         put qc into card fld "con count"
  388.         put qc into card fld ques3
  389.       end if
  390.  
  391.       put card fld ques3 into qcc
  392.       put the short name of me into fldloc
  393.  
  394.       put card fld fldloc into x
  395.       put card fld ques1 into qc
  396.  
  397.       go to card "ques"&qc
  398.  
  399.  
  400.       set the script of card button x to "on mouseUp" &return&"go to card con"&qcc &return&"end mouseUp"
  401.  
  402.  
  403.       --domenu "new background"
  404.       --set the name of this background to "questions"
  405.       domenu "new card"
  406.       choose text tool
  407.       set textAlign to left
  408.       set textSize to 24
  409.       set textStyle to bold, underline
  410.  
  411.       click at 10,44
  412.       type "Conclusion:"
  413.       choose button tool
  414.       domenu "new button"
  415.       set name of card button "new button" to "finished"
  416.       set rect of card button "finished" to 229,330,303,342
  417.       set script of card button "finished" to zz
  418.       choose browse tool
  419.  
  420.       set the name of this card to "con"&qcc
  421.  
  422.       domenu "new field"
  423.       set the name of card fld "" to "funny"
  424.       set the textAlign of card fld "funny" to aligntype
  425.       set the style of card fld funny to scrolling
  426.  
  427.  
  428.  
  429.       choose browse tool
  430.       click at 246,131
  431.     end if
  432.   end if
  433.   set lockscreen to false
  434. end mouseUp
  435.  
  436.  
  437.  
  438. -- part 3 (field)
  439. -- low flags: 01
  440. -- high flags: 0002
  441. -- rect: left=157 top=31 right=43 bottom=214
  442. -- title width / last selected line: 0
  443. -- icon id / first selected line: 0 / 0
  444. -- text alignment: 0
  445. -- font id: 3
  446. -- text size: 9
  447. -- style flags: 0
  448. -- line height: 12
  449. -- part name: yes3
  450. ----- HyperTalk script -----
  451. on mouseUp
  452.   global qc, fldloc, cdname, aligntype, gocon, goconvar
  453.   set lockscreen to true
  454.   put card fld "yes3" into x
  455.   if x is empty then
  456.     beep 1
  457.     answer "There is no answer here to work with"
  458.     exit mouseUp
  459.   end if
  460.  
  461.   put card fld "ques7" into e
  462.   if e Γëá empty then
  463.     answer "There is already a path for this question" with "OK"
  464.     exit mouseUp
  465.   end if
  466.   answer "Work on this answer of this question" with "CANCEL" or "OK"
  467.   if it is "Cancel" then
  468.  
  469.     exit mouseUp
  470.   end if
  471.  
  472.   put the short name of this card into cdname
  473.   if it is "OK" then
  474.     answer "Is this 1.Conclusion  2.Question?" with "1" or "2"
  475.     if it is "2" then
  476.       put "Question" into card fld label7
  477.       if cd fld "dqcount" Γëá 0 then
  478.         put item 1 of card fld dqcount into qc
  479.         if the number of items in card fld "dqcount" = 1 then
  480.           put 0 into card fld "dqcount"
  481.         else
  482.           delete item 1 of card fld "dqcount"
  483.         end if
  484.         put the script of card fld "finished" into p
  485.         put qc into card fld ques7
  486.         add 1 to card fld "ans count"
  487.       else
  488.  
  489.  
  490.         put card fld "ans count" into qc
  491.         put the script of card fld "finished" into p
  492.  
  493.         add 1 to qc
  494.         put qc into card fld "ans count"
  495.         put qc into card fld ques7
  496.       end if
  497.  
  498.  
  499.  
  500.       put card fld ques7 into qcc
  501.       put the short name of me into fldloc
  502.  
  503.       put card fld fldloc into x
  504.       put card fld ques2 into qc
  505.  
  506.       go to card "ques"&qc
  507.       add 1 to qc
  508.       set the script of card button x to "on mouseUp" &return&"go to card ques"&qcc &return&"end mouseUp"
  509.  
  510.  
  511.  
  512.       domenu "new card"
  513.       choose text tool
  514.       set textAlign to left
  515.       set textSize to 24
  516.       set textStyle to bold, underline
  517.  
  518.       click at 10,44
  519.       type "Question:"
  520.       choose button tool
  521.       domenu "new button"
  522.       set name of card button "new button" to "finished"
  523.       set rect of card button "finished" to 229,330,303,342
  524.       set script of card button "finished" to p
  525.       choose browse tool
  526.  
  527.       set the name of this card to "ques"&qcc
  528.  
  529.       domenu "new field"
  530.       set the name of card fld "" to "funny"
  531.       set the textAlign of card fld "funny" to aligntype
  532.       set the style of card fld funny to scrolling
  533.  
  534.       choose browse tool
  535.  
  536.       click at 246,131
  537.     else
  538.       answer "Is this conclusion going to a question" with "Yes" or "No"
  539.       put it into gocon
  540.       put empty into goconvar
  541.       if gocon = "Yes" then
  542.         ask "Please enter the question number"
  543.         if it is empty then
  544.           exit mouseUp
  545.         end if
  546.  
  547.         put it into goconvar
  548.         repeat with x = 1 to the number of items in card fld dqcount
  549.           if goconvar = item x of card fld dqcount then
  550.             answer "You deleted question "&goconvar
  551.             exit mouseUp
  552.           end if
  553.         end repeat
  554.         if goconvar > card fld "ans count" then
  555.  
  556.           answer "There is no question "&goconvar
  557.           subtract 1 from card fld "cd count"
  558.           exit mouseUp
  559.  
  560.         end if
  561.       end if
  562.  
  563.  
  564.       put "Conclusion" into card fld label7
  565.       if card fld dccount Γëá 0 then
  566.         put item 1 of card fld dccount into qc
  567.         if the number of items in cd fld dccount = 1 then
  568.           put 0 into card fld dccount
  569.         else
  570.           delete item 1 of cd fld dccount
  571.         end if
  572.  
  573.         put the script of card fld "conclusion" into zz
  574.         put qc into card fld ques7
  575.         add 1 to cd fld "con count"
  576.       else
  577.  
  578.         put card fld "con count" into qc
  579.         put the script of card fld "conclusion" into zz
  580.         add 1 to qc
  581.  
  582.         put qc into card fld "con count"
  583.         put qc into card fld ques7
  584.       end if
  585.  
  586.       put card fld ques7 into qcc
  587.       put the short name of me into fldloc
  588.  
  589.       put card fld fldloc into x
  590.       put card fld ques2 into qc
  591.  
  592.       go to card "ques"&qc
  593.  
  594.       set the script of card button x to "on mouseUp" &return&"go to card con"&qcc &return&"end mouseUp"
  595.  
  596.  
  597.       --domenu "new background"
  598.       --set the name of this background to "questions"
  599.       domenu "new card"
  600.       choose text tool
  601.       set textAlign to left
  602.       set textSize to 24
  603.       set textStyle to bold, underline
  604.  
  605.       click at 10,44
  606.       type "Conclusion:"
  607.       choose button tool
  608.       domenu "new button"
  609.       set name of card button "new button" to "finished"
  610.       set rect of card button "finished" to 229,330,303,342
  611.       set script of card button "finished" to zz
  612.       choose browse tool
  613.  
  614.       set the name of this card to "con"&qcc
  615.  
  616.       domenu "new field"
  617.       set the name of card fld "" to "funny"
  618.       set the textAlign of card fld "funny" to aligntype
  619.       set the style of card fld funny to scrolling
  620.  
  621.       choose browse tool
  622.  
  623.       click at 246,131
  624.     end if
  625.   end if
  626.   set lockscreen to false
  627. end mouseUp
  628.  
  629.  
  630.  
  631. -- part 4 (field)
  632. -- low flags: 01
  633. -- high flags: 0002
  634. -- rect: left=157 top=87 right=99 bottom=216
  635. -- title width / last selected line: 0
  636. -- icon id / first selected line: 0 / 0
  637. -- text alignment: 0
  638. -- font id: 3
  639. -- text size: 9
  640. -- style flags: 0
  641. -- line height: 12
  642. -- part name: no3
  643. ----- HyperTalk script -----
  644. on mouseUp
  645.   global qc, fldloc, cdname, aligntype, gocon, goconvar
  646.   set lockscreen to true
  647.   put card fld "no3" into x
  648.   if x is empty then
  649.     beep 1
  650.     answer "There is no answer here to work with"
  651.     exit mouseUp
  652.   end if
  653.   put card fld "ques6" into e
  654.   if e Γëá empty then
  655.     answer "There is already a path for this question" with "OK"
  656.     exit mouseUp
  657.   end if
  658.  
  659.   answer "Work on this answer of this question" with "CANCEL" or "OK"
  660.   if it is "Cancel" then
  661.     exit mouseUp
  662.   end if
  663.  
  664.  
  665.   put the short name of this card into cdname
  666.   if it is "OK" then
  667.     answer "Is this 1.Conclusion  2.Question?" with "1" or "2"
  668.     if it is "2" then
  669.       put "Question" into card fld label6
  670.       if cd fld "dqcount" Γëá 0 then
  671.         put item 1 of card fld dqcount into qc
  672.         if the number of items in card fld "dqcount" = 1 then
  673.           put 0 into card fld "dqcount"
  674.         else
  675.           delete item 1 of card fld "dqcount"
  676.         end if
  677.         put the script of card fld "finished" into p
  678.         put qc into card fld ques6
  679.         add 1 to card fld "ans count"
  680.       else
  681.  
  682.  
  683.         put card fld "ans count" into qc
  684.         put the script of card fld "finished" into p
  685.  
  686.         add 1 to qc
  687.         put qc into card fld "ans count"
  688.         put qc into card fld ques6
  689.       end if
  690.  
  691.  
  692.  
  693.  
  694.  
  695.  
  696.  
  697.       put card fld ques6 into qcc
  698.       put the short name of me into fldloc
  699.  
  700.       put card fld fldloc into x
  701.       put card fld ques2 into qc
  702.  
  703.       go to card "ques"&qc
  704.       add 1 to qc
  705.       set the script of card button x to "on mouseUp" &return&"go to card ques"&qcc &return&"end mouseUp"
  706.  
  707.  
  708.       --domenu "new background"
  709.       --set the name of this background to "questions"
  710.       domenu "new card"
  711.       choose text tool
  712.       set textAlign to left
  713.       set textSize to 24
  714.       set textStyle to bold, underline
  715.  
  716.       click at 10,44
  717.       type "Question:"
  718.       choose button tool
  719.       domenu "new button"
  720.       set name of card button "new button" to "finished"
  721.       set rect of card button "finished" to 229,330,303,342
  722.       set script of card button "finished" to p
  723.       choose browse tool
  724.  
  725.       set the name of this card to "ques"&qcc
  726.  
  727.       domenu "new field"
  728.       set the name of card fld "" to "funny"
  729.       set the textAlign of card fld "funny" to aligntype
  730.       set the style of card fld funny to scrolling
  731.  
  732.       choose browse tool
  733.  
  734.       click at 246,131
  735.     else
  736.       answer "Is this conclusion going to a question" with "Yes" or "No"
  737.       put it into gocon
  738.       put empty into goconvar
  739.       if gocon = "Yes" then
  740.         ask "Please enter the question number"
  741.         if it is empty then
  742.           exit mouseUp
  743.         end if
  744.  
  745.         put it into goconvar
  746.         repeat with x = 1 to the number of items in card fld dqcount
  747.           if goconvar = item x of card fld dqcount then
  748.             answer "You deleted question "&goconvar
  749.             exit mouseUp
  750.           end if
  751.         end repeat
  752.         if goconvar > card fld "ans count" then
  753.  
  754.           answer "There is no question "&goconvar
  755.           subtract 1 from card fld "cd count"
  756.           exit mouseUp
  757.  
  758.         end if
  759.       end if
  760.  
  761.  
  762.       put "Conclusion" into card fld label6
  763.       if card fld dccount Γëá 0 then
  764.         put item 1 of card fld dccount into qc
  765.         if the number of items in cd fld dccount = 1 then
  766.           put 0 into card fld dccount
  767.         else
  768.           delete item 1 of cd fld dccount
  769.         end if
  770.  
  771.         put the script of card fld "conclusion" into zz
  772.         put qc into card fld ques6
  773.         add 1 to cd fld "con count"
  774.       else
  775.  
  776.         put card fld "con count" into qc
  777.         put the script of card fld "conclusion" into zz
  778.         add 1 to qc
  779.  
  780.         put qc into card fld "con count"
  781.         put qc into card fld ques6
  782.       end if
  783.  
  784.  
  785.       put card fld ques6 into qcc
  786.       put the short name of me into fldloc
  787.  
  788.       put card fld fldloc into x
  789.       put card fld ques2 into qc
  790.  
  791.       go to card "ques"&qc
  792.  
  793.       set the script of card button x to "on mouseUp" &return&"go to card con"&qcc &return&"end mouseUp"
  794.  
  795.  
  796.       --domenu "new background"
  797.       --set the name of this background to "questions"
  798.       domenu "new card"
  799.       choose text tool
  800.       set textAlign to left
  801.       set textSize to 24
  802.       set textStyle to bold, underline
  803.  
  804.       click at 10,44
  805.       type "Conclusion:"
  806.       choose button tool
  807.       domenu "new button"
  808.       set name of card button "new button" to "finished"
  809.       set rect of card button "finished" to 229,330,303,342
  810.       set script of card button "finished" to zz
  811.       choose browse tool
  812.  
  813.       set the name of this card to "con"&qcc
  814.  
  815.       domenu "new field"
  816.       set the name of card fld "" to "funny"
  817.       set the textAlign of card fld "funny" to aligntype
  818.       set the style of card fld funny to scrolling
  819.  
  820.       choose browse tool
  821.  
  822.       click at 246,131
  823.     end if
  824.   end if
  825.  
  826.   set lockscreen to false
  827.  
  828.  
  829. end mouseUp
  830.  
  831.  
  832.  
  833. -- part 5 (field)
  834. -- low flags: 01
  835. -- high flags: 0002
  836. -- rect: left=160 top=188 right=200 bottom=219
  837. -- title width / last selected line: 0
  838. -- icon id / first selected line: 0 / 0
  839. -- text alignment: 0
  840. -- font id: 3
  841. -- text size: 9
  842. -- style flags: 0
  843. -- line height: 12
  844. -- part name: yes2
  845. ----- HyperTalk script -----
  846. on mouseUp
  847.   global qc, fldloc, cdname, aligntype, gocon, goconvar
  848.   set lockscreen to true
  849.   put card fld "yes2" into x
  850.   if x is empty then
  851.     beep 1
  852.     answer "There is no answer here to work with"
  853.     exit mouseUp
  854.   end if
  855.   put card fld "ques5" into e
  856.   if e Γëá empty then
  857.     answer "There is already a path for this question" with "OK"
  858.     exit mouseUp
  859.   end if
  860.  
  861.   answer "Work on this answer of this question" with "CANCEL" or "OK"
  862.   if it is "Cancel" then
  863.     exit mouseUp
  864.   end if
  865.  
  866.   put the short name of this card into cdname
  867.   if it is "OK" then
  868.     answer "Is this 1.Conclusion  2.Question?" with "1" or "2"
  869.     if it is "2" then
  870.       put "Question" into card fld label5
  871.       if cd fld "dqcount" Γëá 0 then
  872.         put item 1 of card fld dqcount into qc
  873.         if the number of items in card fld "dqcount" = 1 then
  874.           put 0 into card fld "dqcount"
  875.         else
  876.           delete item 1 of card fld "dqcount"
  877.         end if
  878.         put the script of card fld "finished" into p
  879.         put qc into card fld ques5
  880.         add 1 to card fld "ans count"
  881.       else
  882.  
  883.  
  884.         put card fld "ans count" into qc
  885.         put the script of card fld "finished" into p
  886.  
  887.         add 1 to qc
  888.         put qc into card fld "ans count"
  889.         put qc into card fld ques5
  890.       end if
  891.  
  892.  
  893.  
  894.  
  895.       put card fld ques5 into qcc
  896.       put the short name of me into fldloc
  897.  
  898.       put card fld fldloc into x
  899.       put card fld ques3 into qc
  900.  
  901.       go to card "ques"&qc
  902.       add 1 to qc
  903.       set the script of card button x to "on mouseUp" &return&"go to card ques"&qcc &return&"end mouseUp"
  904.  
  905.  
  906.  
  907.       go to last card
  908.       domenu "new card"
  909.       choose text tool
  910.       set textAlign to left
  911.       set textSize to 24
  912.       set textStyle to bold, underline
  913.  
  914.       click at 10,44
  915.       type "Question:"
  916.       choose button tool
  917.       domenu "new button"
  918.       set name of card button "new button" to "finished"
  919.       set rect of card button "finished" to 229,330,303,342
  920.       set script of card button "finished" to p
  921.       choose browse tool
  922.  
  923.       set the name of this card to "ques"&qcc
  924.  
  925.       domenu "new field"
  926.       set the name of card fld "" to "funny"
  927.       set the textAlign of card fld "funny" to aligntype
  928.       set the style of card fld funny to scrolling
  929.       choose browse tool
  930.  
  931.       click at 246,131
  932.     else
  933.       answer "Is this conclusion going to a question" with "Yes" or "No"
  934.       put it into gocon
  935.       put empty into goconvar
  936.       if gocon = "Yes" then
  937.         ask "Please enter the question number"
  938.         if it is empty then
  939.           exit mouseUp
  940.         end if
  941.  
  942.         put it into goconvar
  943.         repeat with x = 1 to the number of items in card fld dqcount
  944.           if goconvar = item x of card fld dqcount then
  945.             answer "You deleted question "&goconvar
  946.             exit mouseUp
  947.           end if
  948.         end repeat
  949.         if goconvar > card fld "ans count" then
  950.  
  951.           answer "There is no question "&goconvar
  952.           subtract 1 from card fld "cd count"
  953.           exit mouseUp
  954.  
  955.         end if
  956.       end if
  957.  
  958.  
  959.  
  960.       put "Conclusion" into card fld label5
  961.       if card fld dccount Γëá 0 then
  962.         put item 1 of card fld dccount into qc
  963.         if the number of items in cd fld dccount = 1 then
  964.           put 0 into card fld dccount
  965.         else
  966.           delete item 1 of cd fld dccount
  967.         end if
  968.  
  969.         put the script of card fld "conclusion" into zz
  970.         put qc into card fld ques5
  971.         add 1 to cd fld "con count"
  972.       else
  973.  
  974.         put card fld "con count" into qc
  975.         put the script of card fld "conclusion" into zz
  976.         add 1 to qc
  977.  
  978.         put qc into card fld "con count"
  979.         put qc into card fld ques5
  980.       end if
  981.  
  982.       put card fld ques5 into qcc
  983.       put the short name of me into fldloc
  984.  
  985.       put card fld fldloc into x
  986.       put card fld ques3 into qc
  987.  
  988.       go to card "ques"&qc
  989.  
  990.  
  991.       set the script of card button x to "on mouseUp" &return&"go to card con"&qcc &return&"end mouseUp"
  992.  
  993.  
  994.       --domenu "new background"
  995.       --set the name of this background to "questions"
  996.       domenu "new card"
  997.       choose text tool
  998.       set textAlign to left
  999.       set textSize to 24
  1000.       set textStyle to bold, underline
  1001.  
  1002.       click at 10,44
  1003.       type "Conclusion:"
  1004.       choose button tool
  1005.       domenu "new button"
  1006.       set name of card button "new button" to "finished"
  1007.       set rect of card button "finished" to 229,330,303,342
  1008.       set script of card button "finished" to zz
  1009.       choose browse tool
  1010.  
  1011.       set the name of this card to "con"&qcc
  1012.  
  1013.       domenu "new field"
  1014.       set the name of card fld "" to "funny"
  1015.       set the textAlign of card fld "funny" to aligntype
  1016.       set the style of card fld funny to scrolling
  1017.  
  1018.       choose browse tool
  1019.  
  1020.       click at 246,131
  1021.     end if
  1022.   end if
  1023.   set lockscreen to false
  1024. end mouseUp
  1025.  
  1026.  
  1027.  
  1028. -- part 6 (field)
  1029. -- low flags: 01
  1030. -- high flags: 0002
  1031. -- rect: left=160 top=244 right=256 bottom=219
  1032. -- title width / last selected line: 0
  1033. -- icon id / first selected line: 0 / 0
  1034. -- text alignment: 0
  1035. -- font id: 3
  1036. -- text size: 9
  1037. -- style flags: 0
  1038. -- line height: 12
  1039. -- part name: no2
  1040. ----- HyperTalk script -----
  1041. on mouseUp
  1042.   global qc, fldloc, cdname, aligntype, gocon, goconvar
  1043.   set lockscreen to true
  1044.   put card fld "no2" into x
  1045.   if x is empty then
  1046.     beep 1
  1047.     answer "There is no answer here to work with"
  1048.     exit mouseUp
  1049.   end if
  1050.   put card fld "ques4" into e
  1051.   if e Γëá empty then
  1052.     answer "There is already a path for this question" with "OK"
  1053.     exit mouseUp
  1054.   end if
  1055.  
  1056.   answer "Work on this answer of this question" with "CANCEL" or "OK"
  1057.   if it is "Cancel" then
  1058.     exit mouseUp
  1059.   end if
  1060.  
  1061.   put the short name of this card into cdname
  1062.   if it is "OK" then
  1063.     answer "Is this 1.Conclusion  2.Question?" with "1" or "2"
  1064.     if it is "2" then
  1065.       put "Question" into card fld label4
  1066.       if cd fld "dqcount" Γëá 0 then
  1067.         put item 1 of card fld dqcount into qc
  1068.         if the number of items in card fld "dqcount" = 1 then
  1069.           put 0 into card fld "dqcount"
  1070.         else
  1071.           delete item 1 of card fld "dqcount"
  1072.         end if
  1073.  
  1074.         put the script of card fld "finished" into p
  1075.         put qc into card fld ques4
  1076.         add 1 to card fld "ans count"
  1077.       else
  1078.  
  1079.  
  1080.  
  1081.         put card fld "ans count" into qc
  1082.         put the script of card fld "finished" into p
  1083.  
  1084.         add 1 to qc
  1085.         put qc into card fld "ans count"
  1086.         put qc into card fld ques4
  1087.       end if
  1088.  
  1089.       put card fld ques4 into qcc
  1090.       put the short name of me into fldloc
  1091.  
  1092.       put card fld fldloc into x
  1093.       put card fld ques3 into qc
  1094.  
  1095.       go to card "ques"&qc
  1096.       add 1 to qc
  1097.       set the script of card button x to "on mouseUp" &return&"go to card ques"&qcc &return&"end mouseUp"
  1098.  
  1099.  
  1100.       --domenu "new background"
  1101.       --set the name of this background to "questions"
  1102.       go to last card
  1103.       domenu "new card"
  1104.       choose text tool
  1105.       set textAlign to left
  1106.       set textSize to 24
  1107.       set textStyle to bold, underline
  1108.  
  1109.       click at 10,44
  1110.       type "Question:"
  1111.       choose button tool
  1112.       domenu "new button"
  1113.       set name of card button "new button" to "finished"
  1114.       set rect of card button "finished" to 229,330,303,342
  1115.       set script of card button "finished" to p
  1116.       choose browse tool
  1117.  
  1118.       set the name of this card to "ques"&qcc
  1119.  
  1120.       domenu "new field"
  1121.       set the name of card fld "" to "funny"
  1122.       set the textAlign of card fld "funny" to aligntype
  1123.       set the style of card fld funny to scrolling
  1124.  
  1125.       choose browse tool
  1126.  
  1127.       click at 246,131
  1128.     else
  1129.       answer "Is this conclusion going to a question" with "Yes" or "No"
  1130.       put it into gocon
  1131.       put empty into goconvar
  1132.       if gocon = "Yes" then
  1133.         ask "Please enter the question number"
  1134.         if it is empty then
  1135.           exit mouseUp
  1136.         end if
  1137.  
  1138.         put it into goconvar
  1139.         repeat with x = 1 to the number of items in card fld dqcount
  1140.           if goconvar = item x of card fld dqcount then
  1141.             answer "You deleted question "&goconvar
  1142.             exit mouseUp
  1143.           end if
  1144.         end repeat
  1145.         if goconvar > card fld "ans count" then
  1146.  
  1147.           answer "There is no question "&goconvar
  1148.           subtract 1 from card fld "cd count"
  1149.           exit mouseUp
  1150.  
  1151.         end if
  1152.       end if
  1153.  
  1154.  
  1155.  
  1156.       put "Conclusion" into card fld label4
  1157.       if card fld dccount Γëá 0 then
  1158.         put item 1 of card fld dccount into qc
  1159.         if the number of items in cd fld dccount = 1 then
  1160.           put 0 into card fld dccount
  1161.         else
  1162.           delete item 1 of cd fld dccount
  1163.         end if
  1164.  
  1165.         put the script of card fld "conclusion" into zz
  1166.         put qc into card fld ques4
  1167.         add 1 to cd fld "con count"
  1168.       else
  1169.  
  1170.         put card fld "con count" into qc
  1171.         put the script of card fld "conclusion" into zz
  1172.         add 1 to qc
  1173.  
  1174.         put qc into card fld "con count"
  1175.         put qc into card fld ques4
  1176.       end if
  1177.  
  1178.  
  1179.       put card fld ques4 into qcc
  1180.       put the short name of me into fldloc
  1181.  
  1182.       put card fld fldloc into x
  1183.       put card fld ques3 into qc
  1184.  
  1185.       go to card "ques"&qc
  1186.  
  1187.  
  1188.       set the script of card button x to "on mouseUp" &return&"go to card con"&qcc &return&"end mouseUp"
  1189.  
  1190.  
  1191.       --domenu "new background"
  1192.       --set the name of this background to "questions"
  1193.       domenu "new card"
  1194.       choose text tool
  1195.       set textAlign to left
  1196.       set textSize to 24
  1197.       set textStyle to bold, underline
  1198.  
  1199.       click at 10,44
  1200.       type "Conclusion:"
  1201.       choose button tool
  1202.       domenu "new button"
  1203.       set name of card button "new button" to "finished"
  1204.       set rect of card button "finished" to 229,330,303,342
  1205.       set script of card button "finished" to zz
  1206.       choose browse tool
  1207.  
  1208.       set the name of this card to "con"&qcc
  1209.  
  1210.       domenu "new field"
  1211.       set the name of card fld "" to "funny"
  1212.       set the textAlign of card fld "funny" to aligntype
  1213.       set the style of card fld funny to scrolling
  1214.  
  1215.       choose browse tool
  1216.  
  1217.       click at 246,131
  1218.     end if
  1219.   end if
  1220.   set lockscreen to false
  1221. end mouseUp
  1222.  
  1223.  
  1224.  
  1225. -- part 7 (field)
  1226. -- low flags: 01
  1227. -- high flags: 0002
  1228. -- rect: left=287 top=4 right=16 bottom=344
  1229. -- title width / last selected line: 0
  1230. -- icon id / first selected line: 0 / 0
  1231. -- text alignment: 0
  1232. -- font id: 3
  1233. -- text size: 9
  1234. -- style flags: 0
  1235. -- line height: 12
  1236. -- part name: yes7
  1237. ----- HyperTalk script -----
  1238. on mouseUp
  1239.   global qc, fldloc, cdname, aligntype, gocon, goconvar
  1240.   set lockscreen to true
  1241.   put card fld "yes7" into x
  1242.   if x is empty then
  1243.     beep 1
  1244.     answer "There is no answer here to work with"
  1245.     exit mouseUp
  1246.   end if
  1247.   put card fld "yes7fld" into e
  1248.   if e Γëá empty then
  1249.     answer "There is already a path for this question" with "OK"
  1250.     exit mouseUp
  1251.   end if
  1252.  
  1253.   answer "Work on this answer of this question" with "CANCEL" or "OK"
  1254.   if it is "CANCEL" then
  1255.     exit mouseUp
  1256.   else
  1257.  
  1258.     add 1 to card fld "cd count"
  1259.     put the short name of me into fldloc
  1260.     put the short name of this card into cdname
  1261.     put card fld ques7 into qc
  1262.     put the number of card buttons into cb
  1263.     answer "Is this a 1.Conclusion 2.Question?" with "1" or "2"
  1264.     put it into zxx
  1265.     if zxx = 2 then
  1266.       if cd fld "dqcount" = 0 then
  1267.         put card fld "ans count" into qcc
  1268.         add 1 to qcc
  1269.         put qcc into card fld "ans count"
  1270.       else
  1271.         put item 1 of card fld dqcount into qcc
  1272.         if the number of items in card fld "dqcount" = 1 then
  1273.           put 0 into card fld "dqcount"
  1274.         else
  1275.           delete item 1 of card fld "dqcount"
  1276.         end if
  1277.  
  1278.         put qcc into card fld "ans count"
  1279.         --add 1 to qcc
  1280.       end if
  1281.  
  1282.     end if
  1283.     if zxx = 1 then
  1284.       answer "Is this conclusion going to a question" with "Yes" or "No"
  1285.       put it into gocon
  1286.       put empty into goconvar
  1287.       if gocon = "Yes" then
  1288.         ask "Please enter the question number"
  1289.         if it is empty then
  1290.           exit mouseUp
  1291.         end if
  1292.  
  1293.         put it into goconvar
  1294.         repeat with x = 1 to the number of items in card fld dqcount
  1295.           if goconvar = item x of card fld dqcount then
  1296.             answer "You deleted question "&goconvar
  1297.             exit mouseUp
  1298.           end if
  1299.         end repeat
  1300.         if goconvar > card fld "ans count" then
  1301.  
  1302.           answer "There is no question "&goconvar
  1303.           subtract 1 from card fld "cd count"
  1304.           exit mouseUp
  1305.  
  1306.         end if
  1307.       end if
  1308.  
  1309.  
  1310.       if cd fld "dccount" = 0 then
  1311.  
  1312.         put card fld "con count" into qcc
  1313.         put card fld "con count" into qccsaved
  1314.         add 1 to qcc
  1315.         add 1 to qccsaved
  1316.       else
  1317.         put item 1 of card fld dccount into qcc
  1318.         put item 1 of card fld dccount into qccsaved
  1319.  
  1320.         if the number of items in cd fld dccount = 1 then
  1321.           put 0 into cd fld dccount
  1322.         else
  1323.           delete item 1 of cd fld dccount
  1324.         end if
  1325.  
  1326.  
  1327.  
  1328.       end if
  1329.  
  1330.       put qcc into card fld "con count"
  1331.       add 10000 to qcc
  1332.     end if
  1333.  
  1334.  
  1335.     put card fld "ans count" into rt
  1336.     put card fld "con count" into tt
  1337.     put card fld "cd count" into pt
  1338.  
  1339.  
  1340.     put card fld "dccount" into xd
  1341.     put card fld "dqcount" into zd
  1342.     put cd fld problem into pm
  1343.  
  1344.     domenu "new button"
  1345.     set the rect of card btn "new button" to 349,1,374,17
  1346.     set the showName of card btn "new button" to false
  1347.     set the style of card btn "new button" to transparent
  1348.     set the icon of card btn "new button" to "Sml Next Arrow"
  1349.     set the loc of card btn "new button" to 382,8
  1350.     set the script of card btn "new button" to "on mouseUp" &return&"put card fld ""e&"con count""e&"into x" &return&"put card fld ""e&"ans count""e&"into y" &return&"put card fld ""e&"cd count""e&"into z" &return&"put card fld ""e&"dccount""e&"into xd" &return&"put card fld ""e&"dqcount""e&"into zd" &return&"put card fld ""e&"problem""e&"into pm" &return&"go to card full"&qcc &return&"put x into card fld ""e&"con count""e &return&"put y into card fld ""e&"ans count""e &return&"put z into card fld ""e&"cd count""e &return&"put xd into card fld ""e&"dccount""e &return&"put zd into card fld ""e&"dqcount""e &return&"put pm into card fld ""e&"problem""e &return&"end mouseUp"
  1351.     if zxx = "2" then
  1352.       set the name of card button "new button" to "butques"&qcc
  1353.  
  1354.     else
  1355.       set the name of card button "new button" to "butcon"&qcc
  1356.     end if
  1357.     if zxx = "2" then
  1358.  
  1359.       put "ques"&qcc into card fld yes7fld
  1360.     else
  1361.       put "con"&qcc into card fld yes7fld
  1362.     end if
  1363.  
  1364.  
  1365.     go to card fulltoo
  1366.     domenu "copy card"
  1367.     domenu "paste card"
  1368.     set the name of this card to "full"&qcc
  1369.  
  1370.     put rt into card fld "ans count"
  1371.     put pt into card fld "cd count"
  1372.     put tt into card fld "con count"
  1373.     put xd into card fld "dccount"
  1374.     put zd into card fld "dqcount"
  1375.     put pm into cd fld "problem"
  1376.  
  1377.  
  1378.     domenu "new button"
  1379.     set the rect of card btn "new button" to 349,1,374,17
  1380.     set the showName of card btn "new button" to false
  1381.     set the style of card btn "new button" to transparent
  1382.     set the icon of card btn "new button" to "Sml Prev Arrow"
  1383.     set the loc of card btn "new button" to 17,176
  1384.     set the script of card btn "new button" to "on mouseUp" &return&"put card fld ""e&"con count""e&"into x" &return&"put card fld ""e&"ans count""e&"into y" &return&"put card fld ""e&"cd count""e&"into z" &return&"put card fld ""e&"dccount""e&"into xd" &return&"put card fld ""e&"dqcount""e&"into zd" &return&"put card fld ""e&"problem""e&"into pm" &return&"go to card "&cdname &return&"put x into card fld ""e&"con count""e &return&"put y into card fld ""e&"ans count""e &return&"put z into card fld ""e&"cd count""e &return&"put xd into card fld ""e&"dccount""e &return&"put zd into card fld ""e&"dqcount""e &return&"put pm into card fld ""e&"problem""e &return&"end mouseUp"
  1385.     set the name of card button "new button" to "bac"&qcc
  1386.  
  1387.     put the short name of this card into cdname
  1388.  
  1389.  
  1390.     if zxx is "2" then
  1391.       put the script of card fld "finished" into p
  1392.       put qcc into card fld ques1
  1393.       put "Question" into card fld label1
  1394.       go to card "ques"&qc
  1395.  
  1396.       set the script of card button x to "on mouseUp" &return&"go to card ques"&qcc &return&"end mouseUp"
  1397.  
  1398.  
  1399.  
  1400.       domenu "new card"
  1401.       choose text tool
  1402.       set textAlign to left
  1403.       set textSize to 24
  1404.       set textStyle to bold, underline
  1405.  
  1406.       click at 10,44
  1407.       type "Question:"
  1408.       choose button tool
  1409.       domenu "new button"
  1410.       set name of card button "new button" to "finished"
  1411.       set rect of card button "finished" to 229,330,303,342
  1412.       set script of card button "finished" to p
  1413.       choose browse tool
  1414.  
  1415.       set the name of this card to "ques"&qcc
  1416.  
  1417.       domenu "new field"
  1418.       set the name of card fld "" to "funny"
  1419.       set the textAlign of card fld "funny" to aligntype
  1420.       set the style of card fld funny to scrolling
  1421.       answer "Type your question in this field" with "OK"
  1422.       answer "Click the finished button when done" with "OK"
  1423.       choose browse tool
  1424.  
  1425.       click at 246,131
  1426.     else
  1427.  
  1428.  
  1429.       put the script of card fld "conclusion" into zz
  1430.       put "Conclusion" into card fld "label1"
  1431.       put qccsaved into card fld ques1
  1432.  
  1433.  
  1434.  
  1435.       go to card "ques"&qc
  1436.  
  1437.       set the script of card button x to "on mouseUp" &return&"go to card con"&qcc &return&"end mouseUp"
  1438.  
  1439.  
  1440.       --domenu "new background"
  1441.       --set the name of this background to "questions"
  1442.       domenu "new card"
  1443.       choose text tool
  1444.       set textAlign to left
  1445.       set textSize to 24
  1446.       set textStyle to bold, underline
  1447.  
  1448.       click at 10,44
  1449.       type "Conclusion:"
  1450.       choose button tool
  1451.       domenu "new button"
  1452.       set name of card button "new button" to "finished"
  1453.       set rect of card button "finished" to 229,330,303,342
  1454.       set script of card button "finished" to zz
  1455.       choose browse tool
  1456.  
  1457.       set the name of this card to "con"&qcc
  1458.  
  1459.       domenu "new field"
  1460.       set the name of card fld "" to "funny"
  1461.       set the textAlign of card fld "funny" to aligntype
  1462.       set the style of card fld funny to scrolling
  1463.       answer "Type your conclusion in this field" with "OK"
  1464.       answer "Click the finished button when done" with "OK"
  1465.       choose browse tool
  1466.  
  1467.       click at 246,131
  1468.     end if
  1469.   end if
  1470.  
  1471.   set lockscreen to false
  1472. end mouseUp
  1473.  
  1474.  
  1475.  
  1476. -- part 8 (field)
  1477. -- low flags: 01
  1478. -- high flags: 0002
  1479. -- rect: left=287 top=34 right=46 bottom=344
  1480. -- title width / last selected line: 0
  1481. -- icon id / first selected line: 0 / 0
  1482. -- text alignment: 0
  1483. -- font id: 3
  1484. -- text size: 9
  1485. -- style flags: 0
  1486. -- line height: 12
  1487. -- part name: no7
  1488. ----- HyperTalk script -----
  1489. on mouseUp
  1490.   global qc, fldloc, cdname, aligntype, gocon, goconvar
  1491.   set lockscreen to true
  1492.   put card fld "no7" into x
  1493.   if x is empty then
  1494.     beep 1
  1495.     answer "There is no answer here to work with"
  1496.     exit mouseUp
  1497.   end if
  1498.   put card fld "no7fld" into e
  1499.   if e Γëá empty then
  1500.     answer "There is already a path for this question" with "OK"
  1501.     exit mouseUp
  1502.   end if
  1503.  
  1504.   answer "Work on this answer of this question" with "CANCEL" or "OK"
  1505.   if it is "CANCEL" then
  1506.     exit mouseUp
  1507.   else
  1508.  
  1509.  
  1510.     add 1 to card fld "cd count"
  1511.     put the short name of me into fldloc
  1512.     put the short name of this card into cdname
  1513.     put card fld ques7 into qc
  1514.     put the number of card buttons into cb
  1515.     answer "Is this a 1.Conclusion 2.Question?" with "1" or "2"
  1516.     put it into zxx
  1517.     if zxx = 2 then
  1518.  
  1519.       if cd fld "dqcount" = 0 then
  1520.         put card fld "ans count" into qcc
  1521.         add 1 to qcc
  1522.         put qcc into card fld "ans count"
  1523.       else
  1524.         put item 1 of card fld dqcount into qcc
  1525.         if the number of items in card fld "dqcount" = 1 then
  1526.           put 0 into card fld "dqcount"
  1527.         else
  1528.           delete item 1 of card fld "dqcount"
  1529.         end if
  1530.         --add 1 to qcc
  1531.         put qcc into card fld "ans count"
  1532.       end if
  1533.     end if
  1534.     if zxx = 1 then
  1535.       answer "Is this conclusion going to a question" with "Yes" or "No"
  1536.       put it into gocon
  1537.       put empty into goconvar
  1538.       if gocon = "Yes" then
  1539.         ask "Please enter the question number"
  1540.         if it is empty then
  1541.           exit mouseUp
  1542.         end if
  1543.  
  1544.         put it into goconvar
  1545.         repeat with x = 1 to the number of items in card fld dqcount
  1546.           if goconvar = item x of card fld dqcount then
  1547.             answer "You deleted question "&goconvar
  1548.             exit mouseUp
  1549.           end if
  1550.         end repeat
  1551.         if goconvar > card fld "ans count" then
  1552.  
  1553.           answer "There is no question "&goconvar
  1554.           subtract 1 from card fld "cd count"
  1555.           exit mouseUp
  1556.  
  1557.         end if
  1558.       end if
  1559.  
  1560.  
  1561.  
  1562.       if cd fld "dccount" = 0 then
  1563.  
  1564.         put card fld "con count" into qcc
  1565.         put card fld "con count" into qccsaved
  1566.         add 1 to qcc
  1567.         add 1 to qccsaved
  1568.       else
  1569.         put item 1 of card fld dccount into qcc
  1570.         put item 1 of card fld dccount into qccsaved
  1571.  
  1572.         if the number of items in cd fld dccount = 1 then
  1573.           put 0 into cd fld dccount
  1574.         else
  1575.           delete item 1 of cd fld dccount
  1576.         end if
  1577.  
  1578.  
  1579.       end if
  1580.       put qcc into card fld "con count"
  1581.       add 10000 to qcc
  1582.     end if
  1583.  
  1584.  
  1585.     put card fld "ans count" into rt
  1586.     put card fld "con count" into tt
  1587.     put card fld "cd count" into pt
  1588.  
  1589.     put card fld "dccount" into xd
  1590.     put card fld "dqcount" into zd
  1591.     put cd fld problem into pm
  1592.  
  1593.     domenu "new button"
  1594.     set the rect of card btn "new button" to 349,1,374,17
  1595.     set the showName of card btn "new button" to false
  1596.     set the style of card btn "new button" to transparent
  1597.     set the icon of card btn "new button" to "Sml Next Arrow"
  1598.     set the loc of card btn "new button" to 382,41
  1599.     set the script of card btn "new button" to "on mouseUp" &return&"put card fld ""e&"con count""e&"into x" &return&"put card fld ""e&"ans count""e&"into y" &return&"put card fld ""e&"cd count""e&"into z" &return&"put card fld ""e&"dccount""e&"into xd" &return&"put card fld ""e&"dqcount""e&"into zd" &return&"put card fld ""e&"problem""e&"into pm" &return&"go to card full"&qcc &return&"put x into card fld ""e&"con count""e &return&"put y into card fld ""e&"ans count""e &return&"put z into card fld ""e&"cd count""e &return&"put xd into card fld ""e&"dccount""e &return&"put zd into card fld ""e&"dqcount""e &return&"put pm into card fld ""e&"problem""e &return&"end mouseUp"
  1600.     if zxx = "2" then
  1601.       set the name of card button "new button" to "butques"&qcc
  1602.  
  1603.     else
  1604.       set the name of card button "new button" to "butcon"&qcc
  1605.     end if
  1606.  
  1607.     if zxx = "2" then
  1608.  
  1609.       put "ques"&qcc into card fld no7fld
  1610.     else
  1611.       put "con"&qcc into card fld no7fld
  1612.     end if
  1613.  
  1614.  
  1615.     go to card fulltoo
  1616.     domenu "copy card"
  1617.     domenu "paste card"
  1618.     set the name of this card to "full"&qcc
  1619.     put rt into card fld "ans count"
  1620.     put tt into card fld "con count"
  1621.     put pt into card fld "cd count"
  1622.     put xd into card fld "dccount"
  1623.     put zd into card fld "dqcount"
  1624.     put pm into cd fld "problem"
  1625.  
  1626.  
  1627.  
  1628.     domenu "new button"
  1629.     set the rect of card btn "new button" to 349,1,374,17
  1630.     set the showName of card btn "new button" to false
  1631.     set the style of card btn "new button" to transparent
  1632.     set the icon of card btn "new button" to "Sml Prev Arrow"
  1633.     set the loc of card btn "new button" to 17,176
  1634.     set the script of card btn "new button" to "on mouseUp" &return&"put card fld ""e&"con count""e&"into x" &return&"put card fld ""e&"ans count""e&"into y" &return&"put card fld ""e&"cd count""e&"into z" &return&"put card fld ""e&"dccount""e&"into xd" &return&"put card fld ""e&"dqcount""e&"into zd" &return&"put card fld ""e&"problem""e&"into pm" &return&"go to card "&cdname &return&"put x into card fld ""e&"con count""e &return&"put y into card fld ""e&"ans count""e &return&"put z into card fld ""e&"cd count""e &return&"put xd into card fld ""e&"dccount""e &return&"put zd into card fld ""e&"dqcount""e &return&"put pm into card fld ""e&"problem""e &return&"end mouseUp"
  1635.  
  1636.     set the name of card button "new button" to "bac"&qcc
  1637.  
  1638.     put the short name of this card into cdname
  1639.  
  1640.  
  1641.     if zxx is "2" then
  1642.       put the script of card fld "finished" into p
  1643.       put qcc into card fld ques1
  1644.       put "Question" into card fld label1
  1645.       go to card "ques"&qc
  1646.  
  1647.       set the script of card button x to "on mouseUp" &return&"go to card ques"&qcc &return&"end mouseUp"
  1648.  
  1649.  
  1650.       --domenu "new background"
  1651.       --set the name of this background to "questions"
  1652.       domenu "new card"
  1653.       choose text tool
  1654.       set textAlign to left
  1655.       set textSize to 24
  1656.       set textStyle to bold, underline
  1657.  
  1658.       click at 10,44
  1659.       type "Question:"
  1660.       choose button tool
  1661.       domenu "new button"
  1662.       set name of card button "new button" to "finished"
  1663.       set rect of card button "finished" to 229,330,303,342
  1664.       set script of card button "finished" to p
  1665.       choose browse tool
  1666.  
  1667.       set the name of this card to "ques"&qcc
  1668.  
  1669.       domenu "new field"
  1670.       set the name of card fld "" to "funny"
  1671.       set the textAlign of card fld "funny" to aligntype
  1672.       set the style of card fld funny to scrolling
  1673.       answer "Type your question in this field" with "OK"
  1674.       answer "Click the finished button when done" with "OK"
  1675.       choose browse tool
  1676.  
  1677.       click at 246,131
  1678.     else
  1679.  
  1680.  
  1681.       put the script of card fld "conclusion" into zz
  1682.       put "Conclusion" into card fld "label1"
  1683.       put qccsaved into card fld ques1
  1684.  
  1685.  
  1686.  
  1687.       go to card "ques"&qc
  1688.  
  1689.       set the script of card button x to "on mouseUp" &return&"go to card con"&qcc &return&"end mouseUp"
  1690.  
  1691.  
  1692.       --domenu "new background"
  1693.       --set the name of this background to "questions"
  1694.       domenu "new card"
  1695.       choose text tool
  1696.       set textAlign to left
  1697.       set textSize to 24
  1698.       set textStyle to bold, underline
  1699.  
  1700.       click at 10,44
  1701.       type "Conclusion:"
  1702.       choose button tool
  1703.       domenu "new button"
  1704.       set name of card button "new button" to "finished"
  1705.       set rect of card button "finished" to 229,330,303,342
  1706.       set script of card button "finished" to zz
  1707.       choose browse tool
  1708.  
  1709.       set the name of this card to "con"&qcc
  1710.  
  1711.       domenu "new field"
  1712.       set the name of card fld "" to "funny"
  1713.       set the textAlign of card fld "funny" to aligntype
  1714.       set the style of card fld funny to scrolling
  1715.       answer "Type your conclusion in this field" with "OK"
  1716.       answer "Click the finished button when done" with "OK"
  1717.       choose browse tool
  1718.  
  1719.       click at 246,131
  1720.     end if
  1721.   end if
  1722.   set lockscreen to false
  1723.  
  1724. end mouseUp
  1725.  
  1726.  
  1727.  
  1728. -- part 9 (field)
  1729. -- low flags: 01
  1730. -- high flags: 0002
  1731. -- rect: left=290 top=93 right=105 bottom=344
  1732. -- title width / last selected line: 0
  1733. -- icon id / first selected line: 0 / 0
  1734. -- text alignment: 0
  1735. -- font id: 3
  1736. -- text size: 9
  1737. -- style flags: 0
  1738. -- line height: 12
  1739. -- part name: yes6
  1740. ----- HyperTalk script -----
  1741. on mouseUp
  1742.   global qc, fldloc, cdname, aligntype, gocon, goconvar
  1743.   set lockscreen to true
  1744.   put card fld "yes6" into x
  1745.   if x is empty then
  1746.     beep 1
  1747.     answer "There is no answer here to work with"
  1748.     exit mouseUp
  1749.   end if
  1750.  
  1751.   put card fld "yes6fld" into e
  1752.   if e Γëá empty then
  1753.     answer "There is already a path for this question" with "OK"
  1754.     exit mouseUp
  1755.   end if
  1756.   answer "Work on this answer of this question" with "CANCEL" or "OK"
  1757.   if it is "CANCEL" then
  1758.     exit mouseUp
  1759.   else
  1760.  
  1761.  
  1762.     add 1 to card fld "cd count"
  1763.     put the short name of me into fldloc
  1764.     put the short name of this card into cdname
  1765.     put card fld ques6 into qc
  1766.     put the number of card buttons into cb
  1767.     answer "Is this a 1.Conclusion 2.Question?" with "1" or "2"
  1768.     put it into zxx
  1769.     if zxx = 2 then
  1770.  
  1771.       if cd fld "dqcount" = 0 then
  1772.         put card fld "ans count" into qcc
  1773.         add 1 to qcc
  1774.         put qcc into card fld "ans count"
  1775.       else
  1776.         put item 1 of card fld dqcount into qcc
  1777.         if the number of items in card fld "dqcount" = 1 then
  1778.           put 0 into card fld "dqcount"
  1779.         else
  1780.           delete item 1 of card fld "dqcount"
  1781.         end if
  1782.         --add 1 to qcc
  1783.         put qcc into card fld "ans count"
  1784.       end if
  1785.     end if
  1786.     if zxx = 1 then
  1787.       answer "Is this conclusion going to a question" with "Yes" or "No"
  1788.       put it into gocon
  1789.       put empty into goconvar
  1790.       if gocon = "Yes" then
  1791.         ask "Please enter the question number"
  1792.         if it is empty then
  1793.           exit mouseUp
  1794.         end if
  1795.  
  1796.         put it into goconvar
  1797.         repeat with x = 1 to the number of items in card fld dqcount
  1798.           if goconvar = item x of card fld dqcount then
  1799.             answer "You deleted question "&goconvar
  1800.             exit mouseUp
  1801.           end if
  1802.         end repeat
  1803.         if goconvar > card fld "ans count" then
  1804.  
  1805.           answer "There is no question "&goconvar
  1806.           subtract 1 from card fld "cd count"
  1807.           exit mouseUp
  1808.  
  1809.         end if
  1810.       end if
  1811.  
  1812.  
  1813.  
  1814.  
  1815.       if cd fld "dccount" = 0 then
  1816.  
  1817.         put card fld "con count" into qcc
  1818.         put card fld "con count" into qccsaved
  1819.         add 1 to qcc
  1820.         add 1 to qccsaved
  1821.       else
  1822.         put item 1 of card fld dccount into qcc
  1823.         put item 1 of card fld dccount into qccsaved
  1824.  
  1825.         if the number of items in cd fld dccount = 1 then
  1826.           put 0 into cd fld dccount
  1827.         else
  1828.           delete item 1 of cd fld dccount
  1829.         end if
  1830.  
  1831.  
  1832.       end if
  1833.       put qcc into card fld "con count"
  1834.       add 10000 to qcc
  1835.     end if
  1836.  
  1837.  
  1838.     put card fld "ans count" into rt
  1839.     put card fld "con count" into tt
  1840.     put card fld "cd count" into pt
  1841.     put card fld "dccount" into xd
  1842.     put card fld "dqcount" into zd
  1843.     put cd fld problem into pm
  1844.  
  1845.     domenu "new button"
  1846.     set the rect of card btn "new button" to 349,1,374,17
  1847.     set the showName of card btn "new button" to false
  1848.     set the style of card btn "new button" to transparent
  1849.     set the icon of card btn "new button" to "Sml Next Arrow"
  1850.     set the loc of card btn "new button" to 382,98
  1851.     set the script of card btn "new button" to "on mouseUp" &return&"put card fld ""e&"con count""e&"into x" &return&"put card fld ""e&"ans count""e&"into y" &return&"put card fld ""e&"cd count""e&"into z" &return&"put card fld ""e&"dccount""e&"into xd" &return&"put card fld ""e&"dqcount""e&"into zd" &return&"put card fld ""e&"problem""e&"into pm" &return&"go to card full"&qcc &return&"put x into card fld ""e&"con count""e &return&"put y into card fld ""e&"ans count""e &return&"put z into card fld ""e&"cd count""e &return&"put xd into card fld ""e&"dccount""e &return&"put zd into card fld ""e&"dqcount""e &return&"put pm into card fld ""e&"problem""e &return&"end mouseUp"
  1852.  
  1853.     if zxx = "2" then
  1854.       set the name of card button "new button" to "butques"&qcc
  1855.  
  1856.     else
  1857.       set the name of card button "new button" to "butcon"&qcc
  1858.     end if
  1859.     if zxx = "2" then
  1860.  
  1861.       put "ques"&qcc into card fld yes6fld
  1862.     else
  1863.       put "con"&qcc into card fld yes6fld
  1864.     end if
  1865.  
  1866.  
  1867.     go to card fulltoo
  1868.     domenu "copy card"
  1869.     domenu "paste card"
  1870.     set the name of this card to "full"&qcc
  1871.     put rt into card fld "ans count"
  1872.     put tt into card fld "con count"
  1873.     put pt into card fld "cd count"
  1874.     put xd into card fld "dccount"
  1875.     put zd into card fld "dqcount"
  1876.     put pm into cd fld "problem"
  1877.  
  1878.     domenu "new button"
  1879.     set the rect of card btn "new button" to 349,1,374,17
  1880.     set the showName of card btn "new button" to false
  1881.     set the style of card btn "new button" to transparent
  1882.     set the icon of card btn "new button" to "Sml Prev Arrow"
  1883.     set the loc of card btn "new button" to 17,176
  1884.     set the script of card btn "new button" to "on mouseUp" &return&"put card fld ""e&"con count""e&"into x" &return&"put card fld ""e&"ans count""e&"into y" &return&"put card fld ""e&"cd count""e&"into z" &return&"put card fld ""e&"dccount""e&"into xd" &return&"put card fld ""e&"dqcount""e&"into zd" &return&"put card fld ""e&"problem""e&"into pm" &return&"go to card "&cdname &return&"put x into card fld ""e&"con count""e &return&"put y into card fld ""e&"ans count""e &return&"put z into card fld ""e&"cd count""e &return&"put xd into card fld ""e&"dccount""e &return&"put zd into card fld ""e&"dqcount""e &return&"put pm into card fld ""e&"problem""e &return&"end mouseUp"
  1885.  
  1886.     set the name of card button "new button" to "bac"&qcc
  1887.  
  1888.     put the short name of this card into cdname
  1889.  
  1890.     if zxx is "2" then
  1891.       put the script of card fld "finished" into p
  1892.       put qcc into card fld ques1
  1893.       put "Question" into card fld label1
  1894.       go to card "ques"&qc
  1895.  
  1896.       set the script of card button x to "on mouseUp" &return&"go to card ques"&qcc &return&"end mouseUp"
  1897.  
  1898.  
  1899.       --domenu "new background"
  1900.       --set the name of this background to "questions"
  1901.       domenu "new card"
  1902.       choose text tool
  1903.       set textAlign to left
  1904.       set textSize to 24
  1905.       set textStyle to bold, underline
  1906.  
  1907.       click at 10,44
  1908.       type "Question:"
  1909.       choose button tool
  1910.       domenu "new button"
  1911.       set name of card button "new button" to "finished"
  1912.       set rect of card button "finished" to 229,330,303,342
  1913.       set script of card button "finished" to p
  1914.       choose browse tool
  1915.  
  1916.       set the name of this card to "ques"&qcc
  1917.  
  1918.       domenu "new field"
  1919.       set the name of card fld "" to "funny"
  1920.       set the textAlign of card fld "funny" to aligntype
  1921.       set the style of card fld funny to scrolling
  1922.       answer "Type your question in this field" with "OK"
  1923.       answer "Click the finished button when done" with "OK"
  1924.       choose browse tool
  1925.  
  1926.       click at 246,131
  1927.     else
  1928.  
  1929.  
  1930.       put the script of card fld "conclusion" into zz
  1931.       put "Conclusion" into card fld "label1"
  1932.       put qccsaved into card fld ques1
  1933.  
  1934.  
  1935.  
  1936.       go to card "ques"&qc
  1937.  
  1938.       set the script of card button x to "on mouseUp" &return&"go to card con"&qcc &return&"end mouseUp"
  1939.  
  1940.  
  1941.       --domenu "new background"
  1942.       --set the name of this background to "questions"
  1943.       domenu "new card"
  1944.       choose text tool
  1945.       set textAlign to left
  1946.       set textSize to 24
  1947.       set textStyle to bold, underline
  1948.  
  1949.       click at 10,44
  1950.       type "Conclusion:"
  1951.       choose button tool
  1952.       domenu "new button"
  1953.       set name of card button "new button" to "finished"
  1954.       set rect of card button "finished" to 229,330,303,342
  1955.       set script of card button "finished" to zz
  1956.       choose browse tool
  1957.  
  1958.       set the name of this card to "con"&qcc
  1959.  
  1960.       domenu "new field"
  1961.       set the name of card fld "" to "funny"
  1962.       set the textAlign of card fld "funny" to aligntype
  1963.       set the style of card fld funny to scrolling
  1964.       answer "Type your conclusion in this field" with "OK"
  1965.       answer "Click the finished button when done" with "OK"
  1966.       choose browse tool
  1967.  
  1968.       click at 246,131
  1969.     end if
  1970.   end if
  1971.   set lockscreen to false
  1972.  
  1973. end mouseUp
  1974.  
  1975.  
  1976.  
  1977. -- part 10 (field)
  1978. -- low flags: 01
  1979. -- high flags: 0002
  1980. -- rect: left=291 top=123 right=135 bottom=344
  1981. -- title width / last selected line: 0
  1982. -- icon id / first selected line: 0 / 0
  1983. -- text alignment: 0
  1984. -- font id: 3
  1985. -- text size: 9
  1986. -- style flags: 0
  1987. -- line height: 12
  1988. -- part name: no6
  1989. ----- HyperTalk script -----
  1990. on mouseUp
  1991.   global qc, fldloc, cdname, aligntype, gocon, goconvar
  1992.   set lockscreen to true
  1993.   put card fld "no6" into x
  1994.   if x is empty then
  1995.     beep 1
  1996.     answer "There is no answer here to work with"
  1997.     exit mouseUp
  1998.   end if
  1999.   put card fld "no6fld" into e
  2000.   if e Γëá empty then
  2001.     answer "There is already a path for this question" with "OK"
  2002.     exit mouseUp
  2003.   end if
  2004.  
  2005.   answer "Work on this answer of this question" with "CANCEL" or "OK"
  2006.   if it is "CANCEL" then
  2007.     exit mouseUp
  2008.   else
  2009.  
  2010.     add 1 to card fld "cd count"
  2011.     put the short name of me into fldloc
  2012.     put the short name of this card into cdname
  2013.     put card fld ques6 into qc
  2014.     put the number of card buttons into cb
  2015.     answer "Is this a 1.Conclusion 2.Question?" with "1" or "2"
  2016.     put it into zxx
  2017.     if zxx = 2 then
  2018.  
  2019.       if cd fld "dqcount" = 0 then
  2020.  
  2021.         put card fld "ans count" into qcc
  2022.         add 1 to qcc
  2023.         put qcc into card fld "ans count"
  2024.       else
  2025.         put item 1 of card fld dqcount into qcc
  2026.         if the number of items in card fld "dqcount" = 1 then
  2027.           put 0 into card fld "dqcount"
  2028.         else
  2029.           delete item 1 of card fld "dqcount"
  2030.         end if
  2031.         --add 1 to qcc
  2032.         put qcc into card fld "ans count"
  2033.       end if
  2034.     end if
  2035.     if zxx = 1 then
  2036.       answer "Is this conclusion going to a question" with "Yes" or "No"
  2037.       put it into gocon
  2038.       put empty into goconvar
  2039.       if gocon = "Yes" then
  2040.         ask "Please enter the question number"
  2041.         if it is empty then
  2042.           exit mouseUp
  2043.         end if
  2044.  
  2045.         put it into goconvar
  2046.         repeat with x = 1 to the number of items in card fld dqcount
  2047.           if goconvar = item x of card fld dqcount then
  2048.             answer "You deleted question "&goconvar
  2049.             exit mouseUp
  2050.           end if
  2051.         end repeat
  2052.         if goconvar > card fld "ans count" then
  2053.  
  2054.           answer "There is no question "&goconvar
  2055.           subtract 1 from card fld "cd count"
  2056.           exit mouseUp
  2057.  
  2058.         end if
  2059.       end if
  2060.  
  2061.  
  2062.  
  2063.       if cd fld "dccount" = 0 then
  2064.  
  2065.         put card fld "con count" into qcc
  2066.         put card fld "con count" into qccsaved
  2067.         add 1 to qcc
  2068.         add 1 to qccsaved
  2069.       else
  2070.         put item 1 of card fld dccount into qcc
  2071.         put item 1 of card fld dccount into qccsaved
  2072.  
  2073.         if the number of items in cd fld dccount = 1 then
  2074.           put 0 into cd fld dccount
  2075.         else
  2076.           delete item 1 of cd fld dccount
  2077.         end if
  2078.  
  2079.  
  2080.       end if
  2081.       put qcc into card fld "con count"
  2082.       add 10000 to qcc
  2083.     end if
  2084.  
  2085.  
  2086.     put card fld "ans count" into rt
  2087.     put card fld "con count" into tt
  2088.     put card fld "cd count" into pt
  2089.     put card fld "dccount" into xd
  2090.     put card fld "dqcount" into zd
  2091.     put cd fld problem into pm
  2092.     domenu "new button"
  2093.     set the rect of card btn "new button" to 349,1,374,17
  2094.     set the showName of card btn "new button" to false
  2095.     set the style of card btn "new button" to transparent
  2096.     set the icon of card btn "new button" to "Sml Next Arrow"
  2097.     set the loc of card btn "new button" to 382,131
  2098.     set the script of card btn "new button" to "on mouseUp" &return&"put card fld ""e&"con count""e&"into x" &return&"put card fld ""e&"ans count""e&"into y" &return&"put card fld ""e&"cd count""e&"into z" &return&"put card fld ""e&"dccount""e&"into xd" &return&"put card fld ""e&"dqcount""e&"into zd" &return&"put card fld ""e&"problem""e&"into pm" &return&"go to card full"&qcc &return&"put x into card fld ""e&"con count""e &return&"put y into card fld ""e&"ans count""e &return&"put z into card fld ""e&"cd count""e &return&"put xd into card fld ""e&"dccount""e &return&"put zd into card fld ""e&"dqcount""e &return&"put pm into card fld ""e&"problem""e &return&"end mouseUp"
  2099.     if zxx = "2" then
  2100.       set the name of card button "new button" to "butques"&qcc
  2101.  
  2102.     else
  2103.       set the name of card button "new button" to "butcon"&qcc
  2104.     end if
  2105.     if zxx = "2" then
  2106.  
  2107.       put "ques"&qcc into card fld no6fld
  2108.     else
  2109.       put "con"&qcc into card fld no6fld
  2110.     end if
  2111.  
  2112.  
  2113.     go to card fulltoo
  2114.     domenu "copy card"
  2115.     domenu "paste card"
  2116.     set the name of this card to "full"&qcc
  2117.     put rt into card fld "ans count"
  2118.     put tt into card fld "con count"
  2119.     put pt into card fld "cd count"
  2120.     put xd into card fld "dccount"
  2121.     put zd into card fld "dqcount"
  2122.     put pm into cd fld "problem"
  2123.  
  2124.     domenu "new button"
  2125.     set the rect of card btn "new button" to 349,1,374,17
  2126.     set the showName of card btn "new button" to false
  2127.     set the style of card btn "new button" to transparent
  2128.     set the icon of card btn "new button" to "Sml Prev Arrow"
  2129.     set the loc of card btn "new button" to 17,176
  2130.     set the script of card btn "new button" to "on mouseUp" &return&"put card fld ""e&"con count""e&"into x" &return&"put card fld ""e&"ans count""e&"into y" &return&"put card fld ""e&"cd count""e&"into z" &return&"put card fld ""e&"dccount""e&"into xd" &return&"put card fld ""e&"dqcount""e&"into zd" &return&"put card fld ""e&"problem""e&"into pm" &return&"go to card "&cdname &return&"put x into card fld ""e&"con count""e &return&"put y into card fld ""e&"ans count""e &return&"put z into card fld ""e&"cd count""e &return&"put xd into card fld ""e&"dccount""e &return&"put zd into card fld ""e&"dqcount""e &return&"put pm into card fld ""e&"problem""e &return&"end mouseUp"
  2131.  
  2132.  
  2133.     set the name of card button "new button" to "bac"&qcc
  2134.  
  2135.  
  2136.  
  2137.     put the short name of this card into cdname
  2138.  
  2139.  
  2140.     if zxx is "2" then
  2141.       put the script of card fld "finished" into p
  2142.       put qcc into card fld ques1
  2143.       put "Question" into card fld label1
  2144.       go to card "ques"&qc
  2145.  
  2146.       set the script of card button x to "on mouseUp" &return&"go to card ques"&qcc &return&"end mouseUp"
  2147.  
  2148.  
  2149.       --domenu "new background"
  2150.       --set the name of this background to "questions"
  2151.       domenu "new card"
  2152.       choose text tool
  2153.       set textAlign to left
  2154.       set textSize to 24
  2155.       set textStyle to bold, underline
  2156.  
  2157.       click at 10,44
  2158.       type "Question:"
  2159.       choose button tool
  2160.       domenu "new button"
  2161.       set name of card button "new button" to "finished"
  2162.       set rect of card button "finished" to 229,330,303,342
  2163.       set script of card button "finished" to p
  2164.       choose browse tool
  2165.  
  2166.       set the name of this card to "ques"&qcc
  2167.  
  2168.       domenu "new field"
  2169.       set the name of card fld "" to "funny"
  2170.       set the textAlign of card fld "funny" to aligntype
  2171.       set the style of card fld funny to scrolling
  2172.       answer "Type your question in this field" with "OK"
  2173.       answer "Click the finished button when done" with "OK"
  2174.       choose browse tool
  2175.  
  2176.       click at 246,131
  2177.     else
  2178.  
  2179.  
  2180.       put the script of card fld "conclusion" into zz
  2181.       put "Conclusion" into card fld "label1"
  2182.       put qccsaved into card fld ques1
  2183.  
  2184.  
  2185.  
  2186.       go to card "ques"&qc
  2187.  
  2188.       set the script of card button x to "on mouseUp" &return&"go to card con"&qcc &return&"end mouseUp"
  2189.  
  2190.  
  2191.       --domenu "new background"
  2192.       --set the name of this background to "questions"
  2193.       domenu "new card"
  2194.  
  2195.       choose text tool
  2196.       set textAlign to left
  2197.       set textSize to 24
  2198.       set textStyle to bold, underline
  2199.  
  2200.       click at 10,44
  2201.       type "Conclusion:"
  2202.       choose button tool
  2203.       domenu "new button"
  2204.       set name of card button "new button" to "finished"
  2205.       set rect of card button "finished" to 229,330,303,342
  2206.       set script of card button "finished" to zz
  2207.       choose browse tool
  2208.  
  2209.       set the name of this card to "con"&qcc
  2210.  
  2211.       domenu "new field"
  2212.       set the name of card fld "" to "funny"
  2213.       set the textAlign of card fld "funny" to aligntype
  2214.       set the style of card fld funny to scrolling
  2215.       answer "Type your conclusion in this field" with "OK"
  2216.       answer "Click the finished button when done" with "OK"
  2217.       choose browse tool
  2218.  
  2219.       click at 246,131
  2220.     end if
  2221.   end if
  2222.   set lockscreen to false
  2223.  
  2224. end mouseUp
  2225.  
  2226.  
  2227.  
  2228. -- part 11 (field)
  2229. -- low flags: 01
  2230. -- high flags: 0002
  2231. -- rect: left=290 top=173 right=185 bottom=346
  2232. -- title width / last selected line: 0
  2233. -- icon id / first selected line: 0 / 0
  2234. -- text alignment: 0
  2235. -- font id: 3
  2236. -- text size: 9
  2237. -- style flags: 0
  2238. -- line height: 12
  2239. -- part name: yes5
  2240. ----- HyperTalk script -----
  2241. on mouseUp
  2242.   global qc, fldloc, cdname, aligntype, gocon, goconvar
  2243.   set lockscreen to true
  2244.   put card fld "yes5" into x
  2245.   if x is empty then
  2246.     beep 1
  2247.     answer "There is no answer here to work with"
  2248.     exit mouseUp
  2249.   end if
  2250.   put card fld "yes5fld" into e
  2251.   if e Γëá empty then
  2252.     answer "There is already a path for this question" with "OK"
  2253.     exit mouseUp
  2254.   end if
  2255.  
  2256.   answer "Work on this answer of this question" with "CANCEL" or "OK"
  2257.   if it is "CANCEL" then
  2258.     exit mouseUp
  2259.   else
  2260.  
  2261.  
  2262.     add 1 to card fld "cd count"
  2263.     put the short name of me into fldloc
  2264.     put the short name of this card into cdname
  2265.     put card fld ques5 into qc
  2266.     put the number of card buttons into cb
  2267.     answer "Is this a 1.Conclusion 2.Question?" with "1" or "2"
  2268.     put it into zxx
  2269.     if zxx = 2 then
  2270.  
  2271.       if cd fld "dqcount" = 0 then
  2272.         put card fld "ans count" into qcc
  2273.         add 1 to qcc
  2274.         put qcc into card fld "ans count"
  2275.       else
  2276.         put item 1 of card fld dqcount into qcc
  2277.         if the number of items in card fld "dqcount" = 1 then
  2278.           put 0 into card fld "dqcount"
  2279.         else
  2280.           delete item 1 of card fld "dqcount"
  2281.         end if
  2282.         --add 1 to qcc
  2283.         put qcc into card fld "ans count"
  2284.       end if
  2285.     end if
  2286.     if zxx = 1 then
  2287.       answer "Is this conclusion going to a question" with "Yes" or "No"
  2288.       put it into gocon
  2289.       put empty into goconvar
  2290.       if gocon = "Yes" then
  2291.         ask "Please enter the question number"
  2292.         if it is empty then
  2293.           exit mouseUp
  2294.         end if
  2295.  
  2296.         put it into goconvar
  2297.         repeat with x = 1 to the number of items in card fld dqcount
  2298.           if goconvar = item x of card fld dqcount then
  2299.             answer "You deleted question "&goconvar
  2300.             exit mouseUp
  2301.           end if
  2302.         end repeat
  2303.         if goconvar > card fld "ans count" then
  2304.  
  2305.           answer "There is no question "&goconvar
  2306.           subtract 1 from card fld "cd count"
  2307.           exit mouseUp
  2308.  
  2309.         end if
  2310.       end if
  2311.  
  2312.  
  2313.  
  2314.       if cd fld "dccount" = 0 then
  2315.         put card fld "con count" into qcc
  2316.         put card fld "con count" into qccsaved
  2317.         add 1 to qcc
  2318.         add 1 to qccsaved
  2319.       else
  2320.         put item 1 of card fld dccount into qcc
  2321.         put item 1 of card fld dccount into qccsaved
  2322.  
  2323.         if the number of items in cd fld dccount = 1 then
  2324.           put 0 into cd fld dccount
  2325.         else
  2326.           delete item 1 of cd fld dccount
  2327.         end if
  2328.  
  2329.  
  2330.       end if
  2331.       put qcc into card fld "con count"
  2332.       add 10000 to qcc
  2333.     end if
  2334.  
  2335.  
  2336.     put card fld "ans count" into rt
  2337.     put card fld "con count" into tt
  2338.     put card fld "cd count" into pt
  2339.     put card fld "dccount" into xd
  2340.     put card fld "dqcount" into zd
  2341.     put cd fld problem into pm
  2342.     domenu "new button"
  2343.     set the rect of card btn "new button" to 349,1,374,17
  2344.     set the showName of card btn "new button" to false
  2345.     set the style of card btn "new button" to transparent
  2346.     set the icon of card btn "new button" to "Sml Next Arrow"
  2347.     set the loc of card btn "new button" to 382,175
  2348.     set the script of card btn "new button" to "on mouseUp" &return&"put card fld ""e&"con count""e&"into x" &return&"put card fld ""e&"ans count""e&"into y" &return&"put card fld ""e&"cd count""e&"into z" &return&"put card fld ""e&"dccount""e&"into xd" &return&"put card fld ""e&"dqcount""e&"into zd" &return&"put card fld ""e&"problem""e&"into pm" &return&"go to card full"&qcc &return&"put x into card fld ""e&"con count""e &return&"put y into card fld ""e&"ans count""e &return&"put z into card fld ""e&"cd count""e &return&"put xd into card fld ""e&"dccount""e &return&"put zd into card fld ""e&"dqcount""e &return&"put pm into card fld ""e&"problem""e &return&"end mouseUp"
  2349.  
  2350.     if zxx = "2" then
  2351.       set the name of card button "new button" to "butques"&qcc
  2352.  
  2353.     else
  2354.       set the name of card button "new button" to "butcon"&qcc
  2355.     end if
  2356.  
  2357.  
  2358.  
  2359.     subtract 1 from cb
  2360.     if zxx = "2" then
  2361.  
  2362.       put "ques"&qcc into card fld yes5fld
  2363.     else
  2364.       put "con"&qcc into card fld yes5fld
  2365.     end if
  2366.  
  2367.     go to card fulltoo
  2368.     domenu "copy card"
  2369.     domenu "paste card"
  2370.     set the name of this card to "full"&qcc
  2371.     put rt into card fld "ans count"
  2372.     put tt into card fld "con count"
  2373.     put pt into card fld "cd count"
  2374.     put xd into card fld "dccount"
  2375.     put zd into card fld "dqcount"
  2376.     put pm into cd fld "problem"
  2377.  
  2378.     domenu "new button"
  2379.     set the rect of card btn "new button" to 349,1,374,17
  2380.     set the showName of card btn "new button" to false
  2381.     set the style of card btn "new button" to transparent
  2382.     set the icon of card btn "new button" to "Sml Prev Arrow"
  2383.     set the loc of card btn "new button" to 17,176
  2384.     set the script of card btn "new button" to "on mouseUp" &return&"put card fld ""e&"con count""e&"into x" &return&"put card fld ""e&"ans count""e&"into y" &return&"put card fld ""e&"cd count""e&"into z" &return&"put card fld ""e&"dccount""e&"into xd" &return&"put card fld ""e&"dqcount""e&"into zd" &return&"put card fld ""e&"problem""e&"into pm" &return&"go to card "&cdname &return&"put x into card fld ""e&"con count""e &return&"put y into card fld ""e&"ans count""e &return&"put z into card fld ""e&"cd count""e &return&"put xd into card fld ""e&"dccount""e &return&"put zd into card fld ""e&"dqcount""e &return&"put pm into card fld ""e&"problem""e &return&"end mouseUp"
  2385.  
  2386.     set the name of card button "new button" to "bac"&qcc
  2387.  
  2388.     put the short name of this card into cdname
  2389.  
  2390.  
  2391.     if zxx is "2" then
  2392.       put the script of card fld "finished" into p
  2393.       put "Question" into card fld "label1"
  2394.       put qcc into card fld ques1
  2395.  
  2396.       go to card "ques"&qc
  2397.  
  2398.       set the script of card button x to "on mouseUp" &return&"go to card ques"&qcc &return&"end mouseUp"
  2399.  
  2400.  
  2401.       --domenu "new background"
  2402.       --set the name of this background to "questions"
  2403.       domenu "new card"
  2404.       choose text tool
  2405.       set textAlign to left
  2406.       set textSize to 24
  2407.       set textStyle to bold, underline
  2408.  
  2409.       click at 10,44
  2410.       type "Question:"
  2411.       choose button tool
  2412.       domenu "new button"
  2413.       set name of card button "new button" to "finished"
  2414.       set rect of card button "finished" to 229,330,303,342
  2415.       set script of card button "finished" to p
  2416.       choose browse tool
  2417.  
  2418.       set the name of this card to "ques"&qcc
  2419.  
  2420.       domenu "new field"
  2421.       set the name of card fld "" to "funny"
  2422.       set the textAlign of card fld "funny" to aligntype
  2423.       set the style of card fld funny to scrolling
  2424.       answer "Type your question in this field" with "OK"
  2425.       answer "Click the finished button when done" with "OK"
  2426.       choose browse tool
  2427.  
  2428.       click at 246,131
  2429.     else
  2430.  
  2431.  
  2432.       put the script of card fld "conclusion" into zz
  2433.       put "Conclusion" into card fld "label1"
  2434.       put qccsaved into card fld ques1
  2435.  
  2436.  
  2437.  
  2438.       go to card "ques"&qc
  2439.  
  2440.       set the script of card button x to "on mouseUp" &return&"go to card con"&qcc &return&"end mouseUp"
  2441.  
  2442.  
  2443.       --domenu "new background"
  2444.       --set the name of this background to "questions"
  2445.       domenu "new card"
  2446.       choose text tool
  2447.       set textAlign to left
  2448.       set textSize to 24
  2449.       set textStyle to bold, underline
  2450.  
  2451.       click at 10,44
  2452.       type "Conclusion:"
  2453.       choose button tool
  2454.       domenu "new button"
  2455.       set name of card button "new button" to "finished"
  2456.       set rect of card button "finished" to 229,330,303,342
  2457.       set script of card button "finished" to zz
  2458.       choose browse tool
  2459.  
  2460.       set the name of this card to "con"&qcc
  2461.  
  2462.       domenu "new field"
  2463.       set the name of card fld "" to "funny"
  2464.       set the textAlign of card fld "funny" to aligntype
  2465.       set the style of card fld funny to scrolling
  2466.       answer "Type your conclusion in this field" with "OK"
  2467.       answer "Click the finished button when done" with "OK"
  2468.       choose browse tool
  2469.  
  2470.       click at 246,131
  2471.     end if
  2472.   end if
  2473.  
  2474.   set lockscreen to false
  2475. end mouseUp
  2476.  
  2477.  
  2478.  
  2479. -- part 12 (field)
  2480. -- low flags: 01
  2481. -- high flags: 0002
  2482. -- rect: left=290 top=201 right=213 bottom=346
  2483. -- title width / last selected line: 0
  2484. -- icon id / first selected line: 0 / 0
  2485. -- text alignment: 0
  2486. -- font id: 3
  2487. -- text size: 9
  2488. -- style flags: 0
  2489. -- line height: 12
  2490. -- part name: no5
  2491. ----- HyperTalk script -----
  2492. on mouseUp
  2493.   global qc, fldloc, cdname, aligntype, gocon, goconvar
  2494.   set lockscreen to true
  2495.   put card fld "no5" into x
  2496.   if x is empty then
  2497.     beep 1
  2498.     answer "There is no answer here to work with"
  2499.     exit mouseUp
  2500.   end if
  2501.   put card fld "no5fld" into e
  2502.   if e Γëá empty then
  2503.     answer "There is already a path for this question" with "OK"
  2504.     exit mouseUp
  2505.   end if
  2506.  
  2507.   answer "Work on this answer of this question" with "CANCEL" or "OK"
  2508.   if it is "CANCEL" then
  2509.     exit mouseUp
  2510.   else
  2511.  
  2512.  
  2513.     add 1 to card fld "cd count"
  2514.     put the short name of me into fldloc
  2515.     put the short name of this card into cdname
  2516.     put card fld ques5 into qc
  2517.     put the number of card buttons into cb
  2518.     answer "Is this a 1.Conclusion 2.Question?" with "1" or "2"
  2519.     put it into zxx
  2520.     if zxx = 2 then
  2521.  
  2522.       if cd fld "dqcount" = 0 then
  2523.         put card fld "ans count" into qcc
  2524.         add 1 to qcc
  2525.         put qcc into card fld "ans count"
  2526.       else
  2527.         put item 1 of card fld dqcount into qcc
  2528.         if the number of items in card fld "dqcount" = 1 then
  2529.           put 0 into card fld "dqcount"
  2530.         else
  2531.           delete item 1 of card fld "dqcount"
  2532.         end if
  2533.         --add 1 to qcc
  2534.         put qcc into card fld "ans count"
  2535.       end if
  2536.     end if
  2537.     if zxx = 1 then
  2538.       answer "Is this conclusion going to a question" with "Yes" or "No"
  2539.       put it into gocon
  2540.       put empty into goconvar
  2541.       if gocon = "Yes" then
  2542.         ask "Please enter the question number"
  2543.         if it is empty then
  2544.           exit mouseUp
  2545.         end if
  2546.  
  2547.         put it into goconvar
  2548.         repeat with x = 1 to the number of items in card fld dqcount
  2549.           if goconvar = item x of card fld dqcount then
  2550.             answer "You deleted question "&goconvar
  2551.             exit mouseUp
  2552.           end if
  2553.         end repeat
  2554.         if goconvar > card fld "ans count" then
  2555.  
  2556.           answer "There is no question "&goconvar
  2557.           subtract 1 from card fld "cd count"
  2558.           exit mouseUp
  2559.  
  2560.         end if
  2561.       end if
  2562.  
  2563.  
  2564.  
  2565.       if cd fld "dccount" = 0 then
  2566.  
  2567.         put card fld "con count" into qcc
  2568.         put card fld "con count" into qccsaved
  2569.         add 1 to qcc
  2570.         add 1 to qccsaved
  2571.       else
  2572.         put item 1 of card fld dccount into qcc
  2573.         put item 1 of card fld dccount into qccsaved
  2574.  
  2575.         if the number of items in cd fld dccount = 1 then
  2576.           put 0 into cd fld dccount
  2577.         else
  2578.           delete item 1 of cd fld dccount
  2579.         end if
  2580.  
  2581.  
  2582.       end if
  2583.       put qcc into card fld "con count"
  2584.       add 10000 to qcc
  2585.     end if
  2586.  
  2587.  
  2588.     put card fld "ans count" into rt
  2589.     put card fld "con count" into tt
  2590.     put card fld "cd count" into pt
  2591.     put card fld "dccount" into xd
  2592.     put card fld "dqcount" into zd
  2593.     put cd fld problem into pm
  2594.  
  2595.     domenu "new button"
  2596.     set the rect of card btn "new button" to 349,1,374,17
  2597.     set the showName of card btn "new button" to false
  2598.     set the style of card btn "new button" to transparent
  2599.     set the icon of card btn "new button" to "Sml Next Arrow"
  2600.     set the loc of card btn "new button" to 382,210
  2601.     set the script of card btn "new button" to "on mouseUp" &return&"put card fld ""e&"con count""e&"into x" &return&"put card fld ""e&"ans count""e&"into y" &return&"put card fld ""e&"cd count""e&"into z" &return&"put card fld ""e&"dccount""e&"into xd" &return&"put card fld ""e&"dqcount""e&"into zd" &return&"put card fld ""e&"problem""e&"into pm" &return&"go to card full"&qcc &return&"put x into card fld ""e&"con count""e &return&"put y into card fld ""e&"ans count""e &return&"put z into card fld ""e&"cd count""e &return&"put xd into card fld ""e&"dccount""e &return&"put zd into card fld ""e&"dqcount""e &return&"put pm into card fld ""e&"problem""e &return&"end mouseUp"
  2602.     if zxx = "2" then
  2603.       set the name of card button "new button" to "butques"&qcc
  2604.  
  2605.     else
  2606.       set the name of card button "new button" to "butcon"&qcc
  2607.     end if
  2608.  
  2609.     if zxx = "2" then
  2610.  
  2611.       put "ques"&qcc into card fld no5fld
  2612.     else
  2613.       put "con"&qcc into card fld no5fld
  2614.     end if
  2615.  
  2616.     go to card fulltoo
  2617.     domenu "copy card"
  2618.     domenu "paste card"
  2619.     set the name of this card to "full"&qcc
  2620.     put rt into card fld "ans count"
  2621.     put tt into card fld "con count"
  2622.     put pt into card fld "cd count"
  2623.     put xd into card fld "dccount"
  2624.     put zd into card fld "dqcount"
  2625.     put pm into cd fld "problem"
  2626.  
  2627.     domenu "new button"
  2628.     set the rect of card btn "new button" to 349,1,374,17
  2629.     set the showName of card btn "new button" to false
  2630.     set the style of card btn "new button" to transparent
  2631.     set the icon of card btn "new button" to "Sml Prev Arrow"
  2632.     set the loc of card btn "new button" to 17,176
  2633.     set the script of card btn "new button" to "on mouseUp" &return&"put card fld ""e&"con count""e&"into x" &return&"put card fld ""e&"ans count""e&"into y" &return&"put card fld ""e&"cd count""e&"into z" &return&"put card fld ""e&"dccount""e&"into xd" &return&"put card fld ""e&"dqcount""e&"into zd" &return&"put card fld ""e&"problem""e&"into pm" &return&"go to card "&cdname &return&"put x into card fld ""e&"con count""e &return&"put y into card fld ""e&"ans count""e &return&"put z into card fld ""e&"cd count""e &return&"put xd into card fld ""e&"dccount""e &return&"put zd into card fld ""e&"dqcount""e &return&"put pm into card fld ""e&"problem""e &return&"end mouseUp"
  2634.     set the name of card button "new button" to "bac"&qcc
  2635.  
  2636.  
  2637.     put the short name of this card into cdname
  2638.  
  2639.  
  2640.     if zxx is "2" then
  2641.       put the script of card fld "finished" into p
  2642.       put qcc into card fld ques1
  2643.       put "Question" into card fld label1
  2644.       go to card "ques"&qc
  2645.  
  2646.       set the script of card button x to "on mouseUp" &return&"go to card ques"&qcc &return&"end mouseUp"
  2647.  
  2648.  
  2649.       --domenu "new background"
  2650.       --set the name of this background to "questions"
  2651.       domenu "new card"
  2652.       choose text tool
  2653.       set textAlign to left
  2654.       set textSize to 24
  2655.       set textStyle to bold, underline
  2656.  
  2657.       click at 10,44
  2658.       type "Question:"
  2659.       choose button tool
  2660.       domenu "new button"
  2661.       set name of card button "new button" to "finished"
  2662.       set rect of card button "finished" to 229,330,303,342
  2663.       set script of card button "finished" to p
  2664.       choose browse tool
  2665.  
  2666.       set the name of this card to "ques"&qcc
  2667.  
  2668.       domenu "new field"
  2669.       set the name of card fld "" to "funny"
  2670.       set the textAlign of card fld "funny" to aligntype
  2671.       set the style of card fld funny to scrolling
  2672.       answer "Type your question in this field" with "OK"
  2673.       answer "Click the finished button when done" with "OK"
  2674.       choose browse tool
  2675.  
  2676.       click at 246,131
  2677.     else
  2678.  
  2679.  
  2680.       put the script of card fld "conclusion" into zz
  2681.       put "Conclusion" into card fld "label1"
  2682.       put qccsaved into card fld ques1
  2683.  
  2684.  
  2685.  
  2686.       go to card "ques"&qc
  2687.  
  2688.       set the script of card button x to "on mouseUp" &return&"go to card con"&qcc &return&"end mouseUp"
  2689.  
  2690.  
  2691.       --domenu "new background"
  2692.       --set the name of this background to "questions"
  2693.       domenu "new card"
  2694.       choose text tool
  2695.       set textAlign to left
  2696.       set textSize to 24
  2697.       set textStyle to bold, underline
  2698.  
  2699.       click at 10,44
  2700.       type "Conclusion:"
  2701.       choose button tool
  2702.       domenu "new button"
  2703.       set name of card button "new button" to "finished"
  2704.       set rect of card button "finished" to 229,330,303,342
  2705.       set script of card button "finished" to zz
  2706.       choose browse tool
  2707.  
  2708.       set the name of this card to "con"&qcc
  2709.  
  2710.       domenu "new field"
  2711.       set the name of card fld "" to "funny"
  2712.       set the textAlign of card fld "funny" to aligntype
  2713.       set the style of card fld funny to scrolling
  2714.       answer "Type your conclusion in this field" with "OK"
  2715.       answer "Click the finished button when done" with "OK"
  2716.       choose browse tool
  2717.  
  2718.       click at 246,131
  2719.     end if
  2720.   end if
  2721.   set lockscreen to false
  2722.  
  2723. end mouseUp
  2724.  
  2725.  
  2726.  
  2727. -- part 13 (field)
  2728. -- low flags: 01
  2729. -- high flags: 0002
  2730. -- rect: left=291 top=260 right=272 bottom=347
  2731. -- title width / last selected line: 0
  2732. -- icon id / first selected line: 0 / 0
  2733. -- text alignment: 0
  2734. -- font id: 3
  2735. -- text size: 9
  2736. -- style flags: 0
  2737. -- line height: 12
  2738. -- part name: yes4
  2739. ----- HyperTalk script -----
  2740. on mouseUp
  2741.   global qc, fldloc, cdname, aligntype, gocon, goconvar
  2742.   set lockscreen to true
  2743.   put card fld "yes4" into x
  2744.   if x is empty then
  2745.     beep 1
  2746.     answer "There is no answer here to work with"
  2747.     exit mouseUp
  2748.   end if
  2749.   put card fld "yes4fld" into e
  2750.   if e Γëá empty then
  2751.     answer "There is already a path for this question" with "OK"
  2752.     exit mouseUp
  2753.   end if
  2754.  
  2755.   answer "Work on this answer of this question" with "CANCEL" or "OK"
  2756.   if it is "CANCEL" then
  2757.     exit mouseUp
  2758.   else
  2759.  
  2760.  
  2761.     add 1 to card fld "cd count"
  2762.     put the short name of me into fldloc
  2763.     put the short name of this card into cdname
  2764.     put card fld ques4 into qc
  2765.     put the number of card buttons into cb
  2766.     answer "Is this a 1.Conclusion 2.Question?" with "1" or "2"
  2767.     put it into zxx
  2768.     if zxx = 2 then
  2769.  
  2770.       if cd fld "dqcount" = 0 then
  2771.         put card fld "ans count" into qcc
  2772.         add 1 to qcc
  2773.         put qcc into card fld "ans count"
  2774.       else
  2775.         put item 1 of card fld dqcount into qcc
  2776.         if the number of items in card fld "dqcount" = 1 then
  2777.           put 0 into card fld "dqcount"
  2778.         else
  2779.           delete item 1 of card fld "dqcount"
  2780.         end if
  2781.         --add 1 to qcc
  2782.         put qcc into card fld "ans count"
  2783.       end if
  2784.     end if
  2785.     if zxx = 1 then
  2786.       answer "Is this conclusion going to a question" with "Yes" or "No"
  2787.       put it into gocon
  2788.       put empty into goconvar
  2789.       if gocon = "Yes" then
  2790.         ask "Please enter the question number"
  2791.         if it is empty then
  2792.           exit mouseUp
  2793.         end if
  2794.  
  2795.         put it into goconvar
  2796.         repeat with x = 1 to the number of items in card fld dqcount
  2797.           if goconvar = item x of card fld dqcount then
  2798.             answer "You deleted question "&goconvar
  2799.             exit mouseUp
  2800.           end if
  2801.         end repeat
  2802.         if goconvar > card fld "ans count" then
  2803.  
  2804.           answer "There is no question "&goconvar
  2805.           subtract 1 from card fld "cd count"
  2806.           exit mouseUp
  2807.  
  2808.         end if
  2809.       end if
  2810.  
  2811.  
  2812.       if cd fld "dccount" = 0 then
  2813.  
  2814.         put card fld "con count" into qcc
  2815.         put card fld "con count" into qccsaved
  2816.         add 1 to qcc
  2817.         add 1 to qccsaved
  2818.       else
  2819.         put item 1 of card fld dccount into qcc
  2820.         put item 1 of card fld dccount into qccsaved
  2821.  
  2822.         if the number of items in cd fld dccount = 1 then
  2823.           put 0 into cd fld dccount
  2824.         else
  2825.           delete item 1 of cd fld dccount
  2826.         end if
  2827.  
  2828.  
  2829.       end if
  2830.       put qcc into card fld "con count"
  2831.       add 10000 to qcc
  2832.     end if
  2833.  
  2834.  
  2835.     put card fld "ans count" into rt
  2836.     put card fld "con count" into tt
  2837.     put card fld "cd count" into pt
  2838.     put card fld "dccount" into xd
  2839.     put card fld "dqcount" into zd
  2840.     put cd fld problem into pm
  2841.  
  2842.     domenu "new button"
  2843.     set the rect of card btn "new button" to 349,1,374,17
  2844.     set the showName of card btn "new button" to false
  2845.     set the style of card btn "new button" to transparent
  2846.     set the icon of card btn "new button" to "Sml Next Arrow"
  2847.     set the loc of card btn "new button" to 382,266
  2848.     set the script of card btn "new button" to "on mouseUp" &return&"put card fld ""e&"con count""e&"into x" &return&"put card fld ""e&"ans count""e&"into y" &return&"put card fld ""e&"cd count""e&"into z" &return&"put card fld ""e&"dccount""e&"into xd" &return&"put card fld ""e&"dqcount""e&"into zd" &return&"put card fld ""e&"problem""e&"into pm" &return&"go to card full"&qcc &return&"put x into card fld ""e&"con count""e &return&"put y into card fld ""e&"ans count""e &return&"put z into card fld ""e&"cd count""e &return&"put xd into card fld ""e&"dccount""e &return&"put zd into card fld ""e&"dqcount""e &return&"put pm into card fld ""e&"problem""e &return&"end mouseUp"
  2849.     if zxx = "2" then
  2850.       set the name of card button "new button" to "butques"&qcc
  2851.  
  2852.     else
  2853.       set the name of card button "new button" to "butcon"&qcc
  2854.     end if
  2855.     if zxx = "2" then
  2856.  
  2857.       put "ques"&qcc into card fld yes4fld
  2858.     else
  2859.       put "con"&qcc into card fld yes4fld
  2860.     end if
  2861.  
  2862.  
  2863.  
  2864.     go to card fulltoo
  2865.     domenu "copy card"
  2866.     domenu "paste card"
  2867.     set the name of this card to "full"&qcc
  2868.     put rt into card fld "ans count"
  2869.     put tt into card fld "con count"
  2870.     put pt into card fld "cd count"
  2871.     put xd into card fld "dccount"
  2872.     put zd into card fld "dqcount"
  2873.     put pm into cd fld "problem"
  2874.  
  2875.     domenu "new button"
  2876.     set the rect of card btn "new button" to 349,1,374,17
  2877.     set the showName of card btn "new button" to false
  2878.     set the style of card btn "new button" to transparent
  2879.     set the icon of card btn "new button" to "Sml Prev Arrow"
  2880.     set the loc of card btn "new button" to 17,176
  2881.     set the script of card btn "new button" to "on mouseUp" &return&"put card fld ""e&"con count""e&"into x" &return&"put card fld ""e&"ans count""e&"into y" &return&"put card fld ""e&"cd count""e&"into z" &return&"put card fld ""e&"dccount""e&"into xd" &return&"put card fld ""e&"dqcount""e&"into zd" &return&"put card fld ""e&"problem""e&"into pm" &return&"go to card "&cdname &return&"put x into card fld ""e&"con count""e &return&"put y into card fld ""e&"ans count""e &return&"put z into card fld ""e&"cd count""e &return&"put xd into card fld ""e&"dccount""e &return&"put zd into card fld ""e&"dqcount""e &return&"put pm into card fld ""e&"problem""e &return&"end mouseUp"
  2882.  
  2883.     set the name of card button "new button" to "bac"&qcc
  2884.  
  2885.  
  2886.     put the short name of this card into cdname
  2887.  
  2888.  
  2889.     if zxx is "2" then
  2890.       put the script of card fld "finished" into p
  2891.       put qcc into card fld ques1
  2892.       put "Question" into card fld label1
  2893.  
  2894.       go to card "ques"&qc
  2895.  
  2896.       set the script of card button x to "on mouseUp" &return&"go to card ques"&qcc &return&"end mouseUp"
  2897.  
  2898.  
  2899.       --domenu "new background"
  2900.       --set the name of this background to "questions"
  2901.       domenu "new card"
  2902.       choose text tool
  2903.       set textAlign to left
  2904.       set textSize to 24
  2905.       set textStyle to bold, underline
  2906.  
  2907.       click at 10,44
  2908.       type "Question:"
  2909.       choose button tool
  2910.       domenu "new button"
  2911.       set name of card button "new button" to "finished"
  2912.       set rect of card button "finished" to 229,330,303,342
  2913.       set script of card button "finished" to p
  2914.       choose browse tool
  2915.  
  2916.       set the name of this card to "ques"&qcc
  2917.  
  2918.       domenu "new field"
  2919.       set the name of card fld "" to "funny"
  2920.       set the textAlign of card fld "funny" to aligntype
  2921.       set the style of card fld funny to scrolling
  2922.       answer "Type your question in this field" with "OK"
  2923.       answer "Click the finished button when done" with "OK"
  2924.       choose browse tool
  2925.  
  2926.       click at 246,131
  2927.     else
  2928.  
  2929.  
  2930.       put the script of card fld "conclusion" into zz
  2931.       put "Conclusion" into card fld "label1"
  2932.       put qccsaved into card fld ques1
  2933.  
  2934.  
  2935.  
  2936.       go to card "ques"&qc
  2937.  
  2938.       set the script of card button x to "on mouseUp" &return&"go to card con"&qcc &return&"end mouseUp"
  2939.  
  2940.  
  2941.       --domenu "new background"
  2942.       --set the name of this background to "questions"
  2943.       domenu "new card"
  2944.       choose text tool
  2945.       set textAlign to left
  2946.       set textSize to 24
  2947.       set textStyle to bold, underline
  2948.  
  2949.       click at 10,44
  2950.       type "Conclusion:"
  2951.       choose button tool
  2952.       domenu "new button"
  2953.       set name of card button "new button" to "finished"
  2954.       set rect of card button "finished" to 229,330,303,342
  2955.       set script of card button "finished" to zz
  2956.       choose browse tool
  2957.  
  2958.       set the name of this card to "con"&qcc
  2959.  
  2960.       domenu "new field"
  2961.       set the name of card fld "" to "funny"
  2962.       set the textAlign of card fld "funny" to aligntype
  2963.       set the style of card fld funny to scrolling
  2964.       answer "Type your conclusion in this field" with "OK"
  2965.       answer "Click the finished button when done" with "OK"
  2966.       choose browse tool
  2967.  
  2968.       click at 246,131
  2969.     end if
  2970.   end if
  2971.  
  2972.   set lockscreen to false
  2973. end mouseUp
  2974.  
  2975.  
  2976.  
  2977. -- part 14 (field)
  2978. -- low flags: 01
  2979. -- high flags: 0002
  2980. -- rect: left=291 top=291 right=303 bottom=347
  2981. -- title width / last selected line: 0
  2982. -- icon id / first selected line: 0 / 0
  2983. -- text alignment: 0
  2984. -- font id: 3
  2985. -- text size: 9
  2986. -- style flags: 0
  2987. -- line height: 12
  2988. -- part name: no4
  2989. ----- HyperTalk script -----
  2990. on mouseUp
  2991.   global qc, fldloc, cdname, aligntype, gocon, goconvar
  2992.   set lockscreen to true
  2993.   put card fld "no4" into x
  2994.   if x is empty then
  2995.     beep 1
  2996.     answer "There is no answer here to work with"
  2997.     exit mouseUp
  2998.   end if
  2999.   put card fld "no4fld" into e
  3000.   if e Γëá empty then
  3001.     answer "There is already a path for this question" with "OK"
  3002.     exit mouseUp
  3003.   end if
  3004.  
  3005.   answer "Work on this answer of this question" with "CANCEL" or "OK"
  3006.   if it is "CANCEL" then
  3007.     exit mouseUp
  3008.   else
  3009.  
  3010.  
  3011.     add 1 to card fld "cd count"
  3012.     put the short name of me into fldloc
  3013.     put the short name of this card into cdname
  3014.     put card fld ques4 into qc
  3015.     put the number of card buttons into cb
  3016.     answer "Is this a 1.Conclusion 2.Question?" with "1" or "2"
  3017.     put it into zxx
  3018.     if zxx = 2 then
  3019.  
  3020.       if cd fld "dqcount" = 0 then
  3021.         put card fld "ans count" into qcc
  3022.         add 1 to qcc
  3023.         put qcc into card fld "ans count"
  3024.       else
  3025.         put item 1 of card fld dqcount into qcc
  3026.         if the number of items in card fld "dqcount" = 1 then
  3027.           put 0 into card fld "dqcount"
  3028.         else
  3029.           delete item 1 of card fld "dqcount"
  3030.         end if
  3031.         --add 1 to qcc
  3032.         put qcc into card fld "ans count"
  3033.       end if
  3034.     end if
  3035.     if zxx = 1 then
  3036.  
  3037.       answer "Is this conclusion going to a question" with "Yes" or "No"
  3038.       put it into gocon
  3039.       put empty into goconvar
  3040.       if gocon = "Yes" then
  3041.         ask "Please enter the question number"
  3042.         if it is empty then
  3043.           exit mouseUp
  3044.         end if
  3045.  
  3046.         put it into goconvar
  3047.         repeat with x = 1 to the number of items in card fld dqcount
  3048.           if goconvar = item x of card fld dqcount then
  3049.             answer "You deleted question "&goconvar
  3050.             exit mouseUp
  3051.           end if
  3052.         end repeat
  3053.         if goconvar > card fld "ans count" then
  3054.  
  3055.           answer "There is no question "&goconvar
  3056.           subtract 1 from card fld "cd count"
  3057.           exit mouseUp
  3058.  
  3059.         end if
  3060.       end if
  3061.  
  3062.  
  3063.  
  3064.       if cd fld "dccount" = 0 then
  3065.         put card fld "con count" into qcc
  3066.         put card fld "con count" into qccsaved
  3067.         add 1 to qcc
  3068.         add 1 to qccsaved
  3069.       else
  3070.         put item 1 of card fld dccount into qcc
  3071.         put item 1 of card fld dccount into qccsaved
  3072.  
  3073.         if the number of items in cd fld dccount = 1 then
  3074.           put 0 into cd fld dccount
  3075.         else
  3076.           delete item 1 of cd fld dccount
  3077.         end if
  3078.  
  3079.  
  3080.  
  3081.       end if
  3082.       put qcc into card fld "con count"
  3083.       add 10000 to qcc
  3084.     end if
  3085.  
  3086.  
  3087.     put card fld "ans count" into rt
  3088.     put card fld "con count" into tt
  3089.     put card fld "cd count" into pt
  3090.     put card fld "dccount" into xd
  3091.     put card fld "dqcount" into zd
  3092.     put cd fld problem into pm
  3093.  
  3094.     domenu "new button"
  3095.     set the rect of card btn "new button" to 349,1,374,17
  3096.     set the showName of card btn "new button" to false
  3097.     set the style of card btn "new button" to transparent
  3098.     set the icon of card btn "new button" to "Sml Next Arrow"
  3099.     set the loc of card btn "new button" to 382,297
  3100.     set the script of card btn "new button" to "on mouseUp" &return&"put card fld ""e&"con count""e&"into x" &return&"put card fld ""e&"ans count""e&"into y" &return&"put card fld ""e&"cd count""e&"into z" &return&"put card fld ""e&"dccount""e&"into xd" &return&"put card fld ""e&"dqcount""e&"into zd" &return&"put card fld ""e&"problem""e&"into pm" &return&"go to card full"&qcc &return&"put x into card fld ""e&"con count""e &return&"put y into card fld ""e&"ans count""e &return&"put z into card fld ""e&"cd count""e &return&"put xd into card fld ""e&"dccount""e &return&"put zd into card fld ""e&"dqcount""e &return&"put pm into card fld ""e&"problem""e &return&"end mouseUp"
  3101.  
  3102.     if zxx = "2" then
  3103.       set the name of card button "new button" to "butques"&qcc
  3104.  
  3105.     else
  3106.       set the name of card button "new button" to "butcon"&qcc
  3107.     end if
  3108.     if zxx = "2" then
  3109.  
  3110.       put "ques"&qcc into card fld no4fld
  3111.     else
  3112.       put "con"&qcc into card fld no4fld
  3113.     end if
  3114.  
  3115.  
  3116.     go to card fulltoo
  3117.     domenu "copy card"
  3118.     domenu "paste card"
  3119.     set the name of this card to "full"&qcc
  3120.     put rt into card fld "ans count"
  3121.     put tt into card fld "con count"
  3122.     put pt into card fld "cd count"
  3123.     put xd into card fld "dccount"
  3124.     put zd into card fld "dqcount"
  3125.     put pm into cd fld "problem"
  3126.  
  3127.     domenu "new button"
  3128.     set the rect of card btn "new button" to 349,1,374,17
  3129.     set the showName of card btn "new button" to false
  3130.     set the style of card btn "new button" to transparent
  3131.     set the icon of card btn "new button" to "Sml Prev Arrow"
  3132.     set the loc of card btn "new button" to 17,176
  3133.     set the script of card btn "new button" to "on mouseUp" &return&"put card fld ""e&"con count""e&"into x" &return&"put card fld ""e&"ans count""e&"into y" &return&"put card fld ""e&"cd count""e&"into z" &return&"put card fld ""e&"dccount""e&"into xd" &return&"put card fld ""e&"dqcount""e&"into zd" &return&"put card fld ""e&"problem""e&"into pm" &return&"go to card "&cdname &return&"put x into card fld ""e&"con count""e &return&"put y into card fld ""e&"ans count""e &return&"put z into card fld ""e&"cd count""e &return&"put xd into card fld ""e&"dccount""e &return&"put zd into card fld ""e&"dqcount""e &return&"put pm into card fld ""e&"problem""e &return&"end mouseUp"
  3134.  
  3135.     set the name of card button "new button" to "bac"&qcc
  3136.  
  3137.  
  3138.     put the short name of this card into cdname
  3139.  
  3140.  
  3141.     if zxx is "2" then
  3142.       put the script of card fld "finished" into p
  3143.       put qcc into card fld ques1
  3144.       put "Question" into card fld label1
  3145.  
  3146.       go to card "ques"&qc
  3147.  
  3148.       set the script of card button x to "on mouseUp" &return&"go to card ques"&qcc &return&"end mouseUp"
  3149.  
  3150.  
  3151.       --domenu "new background"
  3152.       --set the name of this background to "questions"
  3153.       domenu "new card"
  3154.       choose text tool
  3155.       set textAlign to left
  3156.       set textSize to 24
  3157.       set textStyle to bold, underline
  3158.  
  3159.       click at 10,44
  3160.       type "Question:"
  3161.       choose button tool
  3162.       domenu "new button"
  3163.       set name of card button "new button" to "finished"
  3164.       set rect of card button "finished" to 229,330,303,342
  3165.       set script of card button "finished" to p
  3166.       choose browse tool
  3167.  
  3168.       set the name of this card to "ques"&qcc
  3169.  
  3170.       domenu "new field"
  3171.       set the name of card fld "" to "funny"
  3172.       set the textAlign of card fld "funny" to aligntype
  3173.       set the style of card fld funny to scrolling
  3174.       answer "Type your question in this field" with "OK"
  3175.       answer "Click the finished button when done" with "OK"
  3176.       choose browse tool
  3177.  
  3178.       click at 246,131
  3179.     else
  3180.  
  3181.  
  3182.       put the script of card fld "conclusion" into zz
  3183.       put "Conclusion" into card fld "label1"
  3184.       put qccsaved into card fld ques1
  3185.  
  3186.  
  3187.  
  3188.       go to card "ques"&qc
  3189.  
  3190.       set the script of card button x to "on mouseUp" &return&"go to card con"&qcc &return&"end mouseUp"
  3191.  
  3192.  
  3193.       --domenu "new background"
  3194.       --set the name of this background to "questions"
  3195.       domenu "new card"
  3196.       choose text tool
  3197.       set textAlign to left
  3198.       set textSize to 24
  3199.       set textStyle to bold, underline
  3200.  
  3201.       click at 10,44
  3202.       type "Conclusion:"
  3203.       choose button tool
  3204.       domenu "new button"
  3205.       set name of card button "new button" to "finished"
  3206.       set rect of card button "finished" to 229,330,303,342
  3207.       set script of card button "finished" to zz
  3208.       choose browse tool
  3209.  
  3210.       set the name of this card to "con"&qcc
  3211.  
  3212.       domenu "new field"
  3213.       set the name of card fld "" to "funny"
  3214.       set the textAlign of card fld "funny" to aligntype
  3215.       set the style of card fld funny to scrolling
  3216.       answer "Type your conclusion in this field" with "OK"
  3217.       answer "Click the finished button when done" with "OK"
  3218.       choose browse tool
  3219.  
  3220.       click at 246,131
  3221.     end if
  3222.   end if
  3223.   set lockscreen to false
  3224.  
  3225. end mouseUp
  3226.  
  3227.  
  3228.  
  3229. -- part 39 (field)
  3230. -- low flags: 01
  3231. -- high flags: 0000
  3232. -- rect: left=11 top=138 right=152 bottom=61
  3233. -- title width / last selected line: 0
  3234. -- icon id / first selected line: 0 / 0
  3235. -- text alignment: 1
  3236. -- font id: 3
  3237. -- text size: 9
  3238. -- style flags: 0
  3239. -- line height: 12
  3240. -- part name: ques1
  3241.  
  3242.  
  3243. -- part 40 (field)
  3244. -- low flags: 01
  3245. -- high flags: 0000
  3246. -- rect: left=100 top=63 right=77 bottom=149
  3247. -- title width / last selected line: 0
  3248. -- icon id / first selected line: 0 / 0
  3249. -- text alignment: 1
  3250. -- font id: 3
  3251. -- text size: 9
  3252. -- style flags: 0
  3253. -- line height: 12
  3254. -- part name: ques2
  3255.  
  3256.  
  3257. -- part 41 (field)
  3258. -- low flags: 01
  3259. -- high flags: 0000
  3260. -- rect: left=104 top=220 right=234 bottom=153
  3261. -- title width / last selected line: 0
  3262. -- icon id / first selected line: 0 / 0
  3263. -- text alignment: 1
  3264. -- font id: 3
  3265. -- text size: 9
  3266. -- style flags: 0
  3267. -- line height: 12
  3268. -- part name: ques3
  3269.  
  3270.  
  3271. -- part 42 (field)
  3272. -- low flags: 01
  3273. -- high flags: 0000
  3274. -- rect: left=227 top=22 right=36 bottom=276
  3275. -- title width / last selected line: 0
  3276. -- icon id / first selected line: 0 / 0
  3277. -- text alignment: 1
  3278. -- font id: 3
  3279. -- text size: 9
  3280. -- style flags: 0
  3281. -- line height: 12
  3282. -- part name: ques7
  3283.  
  3284.  
  3285. -- part 43 (field)
  3286. -- low flags: 01
  3287. -- high flags: 0000
  3288. -- rect: left=231 top=112 right=126 bottom=280
  3289. -- title width / last selected line: 0
  3290. -- icon id / first selected line: 0 / 0
  3291. -- text alignment: 1
  3292. -- font id: 3
  3293. -- text size: 9
  3294. -- style flags: 0
  3295. -- line height: 12
  3296. -- part name: ques6
  3297.  
  3298.  
  3299. -- part 44 (field)
  3300. -- low flags: 01
  3301. -- high flags: 0000
  3302. -- rect: left=231 top=192 right=206 bottom=280
  3303. -- title width / last selected line: 0
  3304. -- icon id / first selected line: 0 / 0
  3305. -- text alignment: 1
  3306. -- font id: 3
  3307. -- text size: 9
  3308. -- style flags: 0
  3309. -- line height: 12
  3310. -- part name: ques5
  3311.  
  3312.  
  3313. -- part 45 (field)
  3314. -- low flags: 01
  3315. -- high flags: 0000
  3316. -- rect: left=232 top=280 right=294 bottom=281
  3317. -- title width / last selected line: 0
  3318. -- icon id / first selected line: 0 / 0
  3319. -- text alignment: 1
  3320. -- font id: 3
  3321. -- text size: 9
  3322. -- style flags: 0
  3323. -- line height: 12
  3324. -- part name: ques4
  3325.  
  3326.  
  3327. -- part 62 (button)
  3328. -- low flags: 00
  3329. -- high flags: A004
  3330. -- rect: left=411 top=200 right=222 bottom=512
  3331. -- title width / last selected line: 0
  3332. -- icon id / first selected line: 0 / 0
  3333. -- text alignment: 1
  3334. -- font id: 0
  3335. -- text size: 12
  3336. -- style flags: 0
  3337. -- line height: 16
  3338. -- part name: Help
  3339. ----- HyperTalk script -----
  3340. on mouseUp
  3341.   show card fld help
  3342.   set the scroll of card fld help to 1
  3343. end mouseUp
  3344.  
  3345.  
  3346.  
  3347. -- part 64 (field)
  3348. -- low flags: 80
  3349. -- high flags: 0000
  3350. -- rect: left=351 top=330 right=342 bottom=363
  3351. -- title width / last selected line: 0
  3352. -- icon id / first selected line: 0 / 0
  3353. -- text alignment: 0
  3354. -- font id: 3
  3355. -- text size: 12
  3356. -- style flags: 0
  3357. -- line height: 16
  3358. -- part name: finished
  3359. ----- HyperTalk script -----
  3360. on mouseUp
  3361.   global inum, fldloc, qc, cdname, buttontype, fonttype, sizetype, answertype, aligntype
  3362.   put cd fld "funny" into x
  3363.   if x is empty then
  3364.     answer "You havent typed a question!" with "OK"
  3365.     exit mouseUp
  3366.   end if
  3367.  
  3368.   put id of this card into inum
  3369.   set lockscreen to true
  3370.   set the loc of msg box to 23,208
  3371.   put "WORKING..." into msg box
  3372.   go to card cdname
  3373.   domenu "new field"
  3374.   set the name of card fld "" to inum
  3375.   put x into card fld inum
  3376.   set the lockText of card fld inum to true
  3377.   set the style of card fld inum to scrolling
  3378.   set the lockText of card fld inum to true
  3379.   set the script of card fld inum to "on mouseUp" &return&"hide me"&return&"end mouseUp"
  3380.   hide card fld inum
  3381.   domenu "new button"
  3382.   set the name of card btn "new button" to inum
  3383.   set the rect of card btn inum to 4,122,68,164
  3384.   if fldloc = "yes1" then
  3385.  
  3386.     set the loc of card btn inum to 124,65
  3387.   end if
  3388.   if fldloc = "no1" then
  3389.  
  3390.     set the loc of card btn inum to 128,222
  3391.   end if
  3392.   if fldloc = "no3" then
  3393.  
  3394.     set the loc of card btn inum to 255,114
  3395.   end if
  3396.   if fldloc = "yes3" then
  3397.  
  3398.     set the loc of card btn inum to 251,25
  3399.   end if
  3400.   if fldloc = "yes2" then
  3401.  
  3402.     set the loc of card btn inum to 256,194
  3403.   end if
  3404.  
  3405.   if fldloc = "no2" then
  3406.  
  3407.     set the loc of card btn inum to 256,282
  3408.   end if
  3409.  
  3410.  
  3411.  
  3412.   set the showName of cd btn inum to false
  3413.   set the style of cd btn inum to transparent
  3414.   set the script of card btn inum to "on mouseUp" &return&"show card fld ""e&inum"e &return&"end mouseUp"
  3415.   domenu "back"
  3416.   if aligntype is empty then
  3417.  
  3418.     ask "What type of alignment do you want?" with "Center"
  3419.     put it into al
  3420.   else
  3421.     put aligntype into al
  3422.   end if
  3423.  
  3424.   if fonttype is empty then
  3425.  
  3426.     ask "What type of font do you want?" with "Helvetica"
  3427.     put it into ft
  3428.   else
  3429.     put fonttype into ft
  3430.  
  3431.  
  3432.  
  3433.     if sizetype is empty then
  3434.  
  3435.  
  3436.       ask "What size font do you want?" with "24"
  3437.       put it into wer
  3438.     else
  3439.       put sizetype into wer
  3440.     end if
  3441.  
  3442.  
  3443.  
  3444.   end if
  3445.   domenu "new field"
  3446.   set the name of card fld "" to "ha"
  3447.   set the style of card fld "ha" to scrolling
  3448.   set the rect of card fld "ha" to 6,61,507,200
  3449.   set the textFont of card fld "ha" to ft
  3450.   set the textSize of card fld "ha" to wer
  3451.   set the textAlign of card fld "ha" to al
  3452.   hide card fld "funny"
  3453.   put card fld "funny" into card fld "ha"
  3454.  
  3455.   if buttontype is empty then
  3456.  
  3457.     ask "What type of button do you want?" with "shadow"
  3458.     put it into btntyp
  3459.   else
  3460.     put buttontype into btntyp
  3461.   end if
  3462.   choose button tool
  3463.   put 2 into fun
  3464.   repeat 2 times
  3465.     domenu "new button"
  3466.     set the style of card button fun to btntyp
  3467.     add 1 to fun
  3468.   end repeat
  3469.  
  3470.   if answertype = "Variable" then
  3471.  
  3472.  
  3473.  
  3474.     ask "What is answer number 1" with "9 letters max/Yes or No"
  3475.     put it into xx1
  3476.     put the number of characters of xx1 into zip
  3477.     if zip > 9 then
  3478.       beep 1
  3479.       repeat until zip Γëñ 9
  3480.         beep 1
  3481.         ask "What is answer number 1" with "9 letters max/Yes or No"
  3482.         put it into xx1
  3483.         put the number of characters of xx1 into zip
  3484.  
  3485.       end repeat
  3486.  
  3487.     end if
  3488.  
  3489.     set the name of card button "new button" to xx1
  3490.  
  3491.     ask "What is answer number 2" with "9 letters max/Yes or No"
  3492.     put it into yy1
  3493.     put the number of characters of yy1 into zip
  3494.     if zip > 9 then
  3495.       beep 1
  3496.       repeat until zip Γëñ 9
  3497.         beep 1
  3498.         ask "What is answer number 2" with "9 letters max/Yes or No"
  3499.         put it into yy1
  3500.         put the number of characters of yy1 into zip
  3501.  
  3502.       end repeat
  3503.  
  3504.     end if
  3505.     set the name of card button "new button" to yy1
  3506.   end if
  3507.  
  3508.   if answertype = "True-False" then
  3509.     set the name of card button "new button" to "True"
  3510.     set the name of card button "new button" to "False"
  3511.     put "True" into xx1
  3512.     put "False" into yy1
  3513.   end if
  3514.   if answertype = "A-B" then
  3515.     set the name of card button "new button" to "A"
  3516.     set the name of card button "new button" to "B"
  3517.     put "A" into xx1
  3518.     put "B" into yy1
  3519.   end if
  3520.   if answertype = "Yes-No" then
  3521.     set the name of card button "new button" to "Yes"
  3522.     set the name of card button "new button" to "No"
  3523.     put "Yes" into xx1
  3524.     put "No" into yy1
  3525.   end if
  3526.  
  3527.  
  3528.  
  3529.   set the loc of card button 2 to 176,253
  3530.   set the loc of card button 3 to 337,253
  3531.   set lockscreen to false
  3532.   hide msg box
  3533.   wait 100
  3534.   answer "Does that look alright" with "No" or "Yes"
  3535.   if it is "No" then
  3536.     tones
  3537.   end if
  3538.  
  3539.   go to card cdname
  3540.  
  3541.  
  3542.   if fldloc = "yes1" then
  3543.  
  3544.     put xx1 into card fld "yes3"
  3545.     put yy1 into card fld "no3"
  3546.   end if
  3547.   if fldloc = "no1" then
  3548.  
  3549.     put xx1 into card fld "yes2"
  3550.     put yy1 into card fld "no2"
  3551.   end if
  3552.  
  3553.   if fldloc = "yes3" then
  3554.  
  3555.     put xx1 into card fld "yes7"
  3556.     put yy1 into card fld "no7"
  3557.   end if
  3558.   if fldloc = "no3" then
  3559.  
  3560.     put xx1 into card fld "yes6"
  3561.  
  3562.     put yy1 into card fld "no6"
  3563.   end if
  3564.  
  3565.   if fldloc = "yes2" then
  3566.  
  3567.     put xx1 into card fld "yes5"
  3568.  
  3569.     put yy1 into card fld "no5"
  3570.   end if
  3571.  
  3572.   if fldloc = "no2" then
  3573.  
  3574.     put xx1 into card fld "yes4"
  3575.     put yy1 into card fld "no4"
  3576.   end if
  3577.   if fldloc = "no4" then
  3578.     put xx1 into card fld "yes1"
  3579.     put yy1 into card fld "no1"
  3580.   end if
  3581.   if fldloc = "yes4" then
  3582.     put xx1 into card fld "yes1"
  3583.     put yy1 into card fld "no1"
  3584.   end if
  3585.   if fldloc = "no5" then
  3586.     put xx1 into card fld "yes1"
  3587.     put yy1 into card fld "no1"
  3588.   end if
  3589.   if fldloc = "yes5" then
  3590.     put xx1 into card fld "yes1"
  3591.     put yy1 into card fld "no1"
  3592.   end if
  3593.   if fldloc = "no6" then
  3594.     put xx1 into card fld "yes1"
  3595.     put yy1 into card fld "no1"
  3596.   end if
  3597.   if fldloc = "yes6" then
  3598.     put xx1 into card fld "yes1"
  3599.     put yy1 into card fld "no1"
  3600.   end if
  3601.   if fldloc = "no7" then
  3602.     put xx1 into card fld "yes1"
  3603.     put yy1 into card fld "no1"
  3604.   end if
  3605.   if fldloc = "yes7" then
  3606.     put xx1 into card fld "yes1"
  3607.     put yy1 into card fld "no1"
  3608.   end if
  3609.  
  3610.  
  3611.  
  3612.   choose browse tool
  3613.   go to card cdname
  3614.   hide me
  3615.  
  3616. end mouseUp
  3617.  
  3618. on tones
  3619.   global x, aligntype, buttontype, answertype, fonttype, sizetype
  3620.   put empty into card fld "ha"
  3621.   select card button 2
  3622.   domenu "clear button"
  3623.   select card button 2
  3624.   domenu "clear button"
  3625.   choose select tool
  3626.  
  3627.  
  3628.  
  3629.   put card fld fonttypes of card default into ft
  3630.   put card fld fontsize of card default into st
  3631.   put card fld buttontypes of card default into bt
  3632.  
  3633.   answer "Choose type of font do you want?" with "OK"
  3634.   DoList 999,ft,one
  3635.   if item 2 of the result is empty then
  3636.     put "Geneva" into ft
  3637.   else
  3638.  
  3639.     put item 2 of the result into ft
  3640.   end if
  3641.  
  3642.  
  3643.  
  3644.   answer "Choose size of font do you want?" with "OK"
  3645.   DoList 999,st,one
  3646.   if item 2 of the result is empty then
  3647.     put 24 into st
  3648.   else
  3649.  
  3650.     put item 2 of the result into st
  3651.   end if
  3652.  
  3653.   set the textFont of card fld "ha" to ft
  3654.   set the textSize of card fld "ha" to st
  3655.   answer "Align the field: Left, Right, Center" with "Left" or "Right" or "Center"
  3656.   if it is "Left" then
  3657.     set textAlign of card fld "ha" to left
  3658.   end if
  3659.   if it is "Right" then
  3660.     set textAlign of card fld "ha" to right
  3661.   end if
  3662.   if it is "Center" then
  3663.     set textAlign of card fld "ha" to center
  3664.   end if
  3665.  
  3666.   answer "Choose type of button do you want?" with "OK"
  3667.   DoList 999,bt,one
  3668.   if item 2 of the result is empty then
  3669.     put "Shadow" into bt
  3670.   else
  3671.  
  3672.     put item 2 of the result into bt
  3673.   end if
  3674.  
  3675.  
  3676.  
  3677.   choose button tool
  3678.   put 2 into fun
  3679.   repeat 2 times
  3680.     domenu "new button"
  3681.     set the style of card button fun to bt
  3682.     add 1 to fun
  3683.   end repeat
  3684.   set the loc of card button 2 to 176,253
  3685.   set the loc of card button 3 to 337,253
  3686.   ask "What is answer number 1" with answertype
  3687.   put it into xx1
  3688.   put the number of characters of xx1 into zip
  3689.   if zip > 6 then
  3690.     beep 1
  3691.     repeat until zip Γëñ 6
  3692.       beep 1
  3693.       ask "What is answer number 1" with "6 letters max"
  3694.       put it into xx1
  3695.       put the number of characters of xx1 into zip
  3696.  
  3697.     end repeat
  3698.  
  3699.   end if
  3700.  
  3701.   set the name of card button "new button" to xx1
  3702.  
  3703.   ask "What is answer number 2" with answertype
  3704.   put it into yy1
  3705.   put the number of characters of yy1 into zip
  3706.   if zip > 6 then
  3707.     beep 1
  3708.     repeat until zip Γëñ 6
  3709.       beep 1
  3710.       ask "What is answer number 2" with "6 letters max"
  3711.       put it into yy1
  3712.       put the number of characters of yy1 into zip
  3713.  
  3714.     end repeat
  3715.  
  3716.   end if
  3717.  
  3718.   set the name of card button "new button" to yy1
  3719.   put card fld "funny" into card fld "ha"
  3720.   wait 100
  3721.   answer "Does that look alright" with "No" or "Yes"
  3722.   if it is "no" then
  3723.     tones
  3724.   end if
  3725.   if xx1 = yy1 then
  3726.     answer "You cannot have two buttons with the same names" with "OK"
  3727.     tones
  3728.   end if
  3729.  
  3730.  
  3731. end tones
  3732.  
  3733.  
  3734.  
  3735. -- part 207 (field)
  3736. -- low flags: 80
  3737. -- high flags: 0000
  3738. -- rect: left=334 top=330 right=342 bottom=346
  3739. -- title width / last selected line: 0
  3740. -- icon id / first selected line: 0 / 0
  3741. -- text alignment: 0
  3742. -- font id: 3
  3743. -- text size: 12
  3744. -- style flags: 0
  3745. -- line height: 16
  3746. -- part name: conclusion
  3747. ----- HyperTalk script -----
  3748. on mouseUp
  3749.   global inum, fldloc, qc, cdname, fonttype, sizetype, aligntype, gocon, goconvar
  3750.   put cd fld "funny" into x
  3751.   if x is empty then
  3752.     answer "You havent typed a question!" with "OK"
  3753.     exit mouseUp
  3754.   end if
  3755.  
  3756.   put id of this card into inum
  3757.   set lockscreen to true
  3758.   set the loc of msg box to 23,208
  3759.   put "WORKING..." into msg box
  3760.   go to card cdname
  3761.   domenu "new field"
  3762.   set the name of card fld "" to inum
  3763.   put x into card fld inum
  3764.   set the lockText of card fld inum to true
  3765.   set the style of card fld inum to scrolling
  3766.   set the lockText of card fld inum to true
  3767.   set the script of card fld inum to "on mouseUp" &return&"hide me"&return&"end mouseUp"
  3768.   hide card fld inum
  3769.   domenu "new button"
  3770.   set the name of card btn "new button" to inum
  3771.   set the rect of card btn inum to 4,122,68,164
  3772.   if fldloc = "yes1" then
  3773.  
  3774.     set the loc of card btn inum to 124,65
  3775.   end if
  3776.   if fldloc = "no1" then
  3777.  
  3778.     set the loc of card btn inum to 128,222
  3779.   end if
  3780.   if fldloc = "no3" then
  3781.  
  3782.     set the loc of card btn inum to 255,114
  3783.   end if
  3784.   if fldloc = "yes3" then
  3785.  
  3786.     set the loc of card btn inum to 251,25
  3787.   end if
  3788.   if fldloc = "yes2" then
  3789.  
  3790.     set the loc of card btn inum to 256,194
  3791.   end if
  3792.  
  3793.   if fldloc = "no2" then
  3794.  
  3795.     set the loc of card btn inum to 256,282
  3796.   end if
  3797.  
  3798.  
  3799.  
  3800.   set the showName of cd btn inum to false
  3801.   set the style of cd btn inum to transparent
  3802.   set the script of card btn inum to "on mouseUp" &return&"show card fld ""e&inum"e &return&"end mouseUp"
  3803.   domenu "back"
  3804.   if aligntype is empty then
  3805.  
  3806.     ask "What type of alignment do you want?" with "Center"
  3807.     put it into al
  3808.   else
  3809.     put aligntype into al
  3810.   end if
  3811.  
  3812.   if fonttype is empty then
  3813.  
  3814.     ask "What type of font do you want?" with "Helvetica"
  3815.     put it into ft
  3816.   else
  3817.     put fonttype into ft
  3818.  
  3819.   end if
  3820.  
  3821.  
  3822.   if sizetype is empty then
  3823.  
  3824.  
  3825.     ask "What size font do you want?" with "24"
  3826.     put it into wer
  3827.   else
  3828.     put sizetype into wer
  3829.   end if
  3830.  
  3831.   domenu "new field"
  3832.   set the name of card fld "" to "ha"
  3833.   set the style of card fld "ha" to scrolling
  3834.   set the rect of card fld "ha" to 6,61,507,200
  3835.   set the textFont of card fld "ha" to ft
  3836.   set the textSize of card fld "ha" to wer
  3837.   set the textAlign of card fld "ha" to al
  3838.   hide card fld "funny"
  3839.   put card fld "funny" into card fld "ha"
  3840.  
  3841.  
  3842.   hide msg box
  3843.   set lockscreen to false
  3844.   wait 100
  3845.   answer "Does that look alright" with "No" or "Yes"
  3846.   if it is "No" then
  3847.     tones
  3848.   end if
  3849.   if gocon is "Yes" then
  3850.     choose button tool
  3851.  
  3852.     domenu "new button"
  3853.     set the name of card button "new button" to "Restart Consultation"
  3854.     set the rect of cd btn "Restart Consultation" to 351,276,508,295
  3855.     set the loc of cd btn "Restart Consultation" to 429,285
  3856.     set the style of cd btn "Restart Consultation" to checkBox
  3857.     set the script of cd btn "Restart Consultation" to "on mouseUp" &return&"go to stack ExpertMenu" &return&"end mouseUp"
  3858.  
  3859.     domenu "new button"
  3860.     set the name of card button "new button" to "Another Question?"
  3861.     set the rect of cd btn "Another Question?" to 6,276,150,295
  3862.     set the loc of cd btn "Another Question?" to 78,285
  3863.     set the style of cd btn "Another Question?" to checkBox
  3864.     set the script of cd btn "Another Question?" to "on mouseUp" &return&"go to card ques"&goconvar &return&"end mouseUp"
  3865.  
  3866.     domenu "new button"
  3867.     set the name of card button "new button" to "Quit"
  3868.     set the rect of cd btn "Quit" to 222,316,322,338
  3869.     set the loc of cd btn "Quit" to 272,327
  3870.     set the style of cd btn "Quit" to checkBox
  3871.     set the script of cd btn "Quit" to "on mouseUp" &return&"domenu ""e&"Quit Hypercard""e &return&"end mouseUp"
  3872.  
  3873.  
  3874.   else
  3875.  
  3876.     choose button tool
  3877.     domenu "new button"
  3878.     set the name of card button "new button" to "Restart Consultation"
  3879.     set the rect of cd btn "Restart Consultation" to 351,276,508,295
  3880.     set the loc of cd btn "Restart Consultation" to 429,285
  3881.     set the style of cd btn "Restart Consultation" to checkBox
  3882.     set the script of cd btn "Restart Consultation" to "on mouseUp" &return&"go to stack ExpertMenu" &return&"end mouseUp"
  3883.  
  3884.     domenu "new button"
  3885.     set the name of card button "new button" to "Quit"
  3886.     set the rect of cd btn "Quit" to 222,316,322,338
  3887.     set the loc of cd btn "Quit" to 78,285
  3888.     set the style of cd btn "Quit" to checkBox
  3889.     set the script of cd btn "Quit" to "on mouseUp" &return&"domenu ""e&"Quit Hypercard""e &return&"end mouseUp"
  3890.   end if
  3891.  
  3892.  
  3893.  
  3894.   choose browse tool
  3895.   go to card cdname
  3896.   hide me
  3897. end mouseUp
  3898.  
  3899. on tones
  3900.   global x, aligntype, fonttype, sizetype
  3901.   put empty into card fld "ha"
  3902.  
  3903.  
  3904.   put card fld fonttypes of card default into ft
  3905.   put card fld fontsize of card default into st
  3906.   put card fld buttontypes of card default into bt
  3907.  
  3908.   answer "Choose type of font do you want?" with "OK"
  3909.   DoList 999,ft,one
  3910.   if item 2 of the result is empty then
  3911.     put "Geneva" into ft
  3912.   else
  3913.  
  3914.     put item 2 of the result into ft
  3915.   end if
  3916.  
  3917.  
  3918.  
  3919.   answer "Choose size of font do you want?" with "OK"
  3920.   DoList 999,st,one
  3921.   if item 2 of the result is empty then
  3922.     put 24 into st
  3923.   else
  3924.  
  3925.     put item 2 of the result into st
  3926.   end if
  3927.  
  3928.  
  3929.   set the textFont of card fld "ha" to ft
  3930.   set the textSize of card fld "ha" to st
  3931.   answer "Align the field: Left, Right, Center" with "Left" or "Right" or "Center"
  3932.   if it is "Left" then
  3933.     set textAlign of card fld "ha" to left
  3934.   end if
  3935.   if it is "Right" then
  3936.     set textAlign of card fld "ha" to right
  3937.   end if
  3938.   if it is "Center" then
  3939.     set textAlign of card fld "ha" to center
  3940.   end if
  3941.  
  3942.  
  3943.  
  3944.   put card fld "funny" into card fld "ha"
  3945.   wait 100
  3946.   answer "Does that look alright" with "Yes" or "No"
  3947.   if it is "no" then
  3948.     tones
  3949.   end if
  3950.  
  3951.  
  3952.  
  3953. end tones
  3954.  
  3955.  
  3956.  
  3957.  
  3958. -- part 233 (field)
  3959. -- low flags: 01
  3960. -- high flags: 0002
  3961. -- rect: left=3 top=267 right=280 bottom=32
  3962. -- title width / last selected line: 0
  3963. -- icon id / first selected line: 0 / 0
  3964. -- text alignment: 0
  3965. -- font id: 3
  3966. -- text size: 9
  3967. -- style flags: 0
  3968. -- line height: 12
  3969. -- part name: con count
  3970.  
  3971.  
  3972. -- part 234 (field)
  3973. -- low flags: 00
  3974. -- high flags: 0002
  3975. -- rect: left=3 top=256 right=268 bottom=32
  3976. -- title width / last selected line: 0
  3977. -- icon id / first selected line: 0 / 0
  3978. -- text alignment: 0
  3979. -- font id: 3
  3980. -- text size: 9
  3981. -- style flags: 0
  3982. -- line height: 12
  3983. -- part name: ans count
  3984.  
  3985.  
  3986. -- part 242 (field)
  3987. -- low flags: 01
  3988. -- high flags: 0002
  3989. -- rect: left=3 top=244 right=257 bottom=32
  3990. -- title width / last selected line: 0
  3991. -- icon id / first selected line: 0 / 0
  3992. -- text alignment: 0
  3993. -- font id: 3
  3994. -- text size: 9
  3995. -- style flags: 0
  3996. -- line height: 12
  3997. -- part name: cd count
  3998.  
  3999.  
  4000. -- part 328 (field)
  4001. -- low flags: 81
  4002. -- high flags: 0007
  4003. -- rect: left=156 top=120 right=205 bottom=356
  4004. -- title width / last selected line: 0
  4005. -- icon id / first selected line: 0 / 0
  4006. -- text alignment: 0
  4007. -- font id: 3
  4008. -- text size: 12
  4009. -- style flags: 0
  4010. -- line height: 16
  4011. -- part name: card id 7459
  4012. ----- HyperTalk script -----
  4013. on mouseUp
  4014.   hide me
  4015. end mouseUp
  4016.  
  4017.  
  4018. -- part 334 (field)
  4019. -- low flags: 01
  4020. -- high flags: 0000
  4021. -- rect: left=6 top=123 right=136 bottom=66
  4022. -- title width / last selected line: 0
  4023. -- icon id / first selected line: 0 / 0
  4024. -- text alignment: 1
  4025. -- font id: 3
  4026. -- text size: 9
  4027. -- style flags: 256
  4028. -- line height: 12
  4029. -- part name: label1
  4030.  
  4031.  
  4032. -- part 335 (field)
  4033. -- low flags: 01
  4034. -- high flags: 0000
  4035. -- rect: left=94 top=47 right=60 bottom=154
  4036. -- title width / last selected line: 0
  4037. -- icon id / first selected line: 0 / 0
  4038. -- text alignment: 1
  4039. -- font id: 3
  4040. -- text size: 9
  4041. -- style flags: 256
  4042. -- line height: 12
  4043. -- part name: label2
  4044.  
  4045.  
  4046. -- part 336 (field)
  4047. -- low flags: 01
  4048. -- high flags: 0000
  4049. -- rect: left=222 top=6 right=19 bottom=282
  4050. -- title width / last selected line: 0
  4051. -- icon id / first selected line: 0 / 0
  4052. -- text alignment: 1
  4053. -- font id: 3
  4054. -- text size: 9
  4055. -- style flags: 256
  4056. -- line height: 12
  4057. -- part name: label7
  4058.  
  4059.  
  4060. -- part 337 (field)
  4061. -- low flags: 01
  4062. -- high flags: 0000
  4063. -- rect: left=225 top=95 right=108 bottom=285
  4064. -- title width / last selected line: 0
  4065. -- icon id / first selected line: 0 / 0
  4066. -- text alignment: 1
  4067. -- font id: 3
  4068. -- text size: 9
  4069. -- style flags: 256
  4070. -- line height: 12
  4071. -- part name: label6
  4072.  
  4073.  
  4074. -- part 338 (field)
  4075. -- low flags: 01
  4076. -- high flags: 0000
  4077. -- rect: left=226 top=175 right=188 bottom=285
  4078. -- title width / last selected line: 0
  4079. -- icon id / first selected line: 0 / 0
  4080. -- text alignment: 1
  4081. -- font id: 3
  4082. -- text size: 9
  4083. -- style flags: 256
  4084. -- line height: 12
  4085. -- part name: label5
  4086.  
  4087.  
  4088. -- part 339 (field)
  4089. -- low flags: 01
  4090. -- high flags: 0000
  4091. -- rect: left=226 top=263 right=275 bottom=285
  4092. -- title width / last selected line: 0
  4093. -- icon id / first selected line: 0 / 0
  4094. -- text alignment: 1
  4095. -- font id: 3
  4096. -- text size: 9
  4097. -- style flags: 256
  4098. -- line height: 12
  4099. -- part name: label4
  4100.  
  4101.  
  4102. -- part 341 (field)
  4103. -- low flags: 01
  4104. -- high flags: 0000
  4105. -- rect: left=98 top=204 right=217 bottom=158
  4106. -- title width / last selected line: 0
  4107. -- icon id / first selected line: 0 / 0
  4108. -- text alignment: 1
  4109. -- font id: 3
  4110. -- text size: 9
  4111. -- style flags: 256
  4112. -- line height: 12
  4113. -- part name: label3
  4114.  
  4115.  
  4116. -- part 351 (field)
  4117. -- low flags: 81
  4118. -- high flags: 0007
  4119. -- rect: left=156 top=120 right=205 bottom=356
  4120. -- title width / last selected line: 0
  4121. -- icon id / first selected line: 0 / 0
  4122. -- text alignment: 0
  4123. -- font id: 3
  4124. -- text size: 12
  4125. -- style flags: 0
  4126. -- line height: 16
  4127. -- part name: card id 6501
  4128. ----- HyperTalk script -----
  4129. on mouseUp
  4130.   hide me
  4131. end mouseUp
  4132.  
  4133.  
  4134. -- part 476 (field)
  4135. -- low flags: 80
  4136. -- high flags: 0000
  4137. -- rect: left=366 top=330 right=342 bottom=378
  4138. -- title width / last selected line: 0
  4139. -- icon id / first selected line: 0 / 0
  4140. -- text alignment: 0
  4141. -- font id: 3
  4142. -- text size: 12
  4143. -- style flags: 0
  4144. -- line height: 16
  4145. -- part name: deleted
  4146. ----- HyperTalk script -----
  4147. on mouseUp
  4148.   global inum, fldloc, qc, cdname, tox, toy, qcc, btn2, btn1, fonttype, answertype, sizetype, buttontype, aligntype, anx, anyy, spec1, spec2, xx1, yy1
  4149.  
  4150.   put cd fld "funny" into x
  4151.  
  4152.   if x is empty then
  4153.     answer "You havent typed a question!" with "OK"
  4154.     exit mouseUp
  4155.   end if
  4156.  
  4157.   put id of this card into inum
  4158.   set lockscreen to true
  4159.   set the loc of msg box to 23,208
  4160.   put "WORKING..." into msg box
  4161.   go to card cdname
  4162.   domenu "new field"
  4163.   set the name of card fld "" to inum
  4164.   put x into card fld inum
  4165.   set the lockText of card fld inum to true
  4166.   set the style of card fld inum to scrolling
  4167.   set the lockText of card fld inum to true
  4168.   set the script of card fld inum to "on mouseUp" &return&"hide me"&return&"end mouseUp"
  4169.   hide card fld inum
  4170.   domenu "new button"
  4171.   set the name of card btn "new button" to inum
  4172.   set the rect of card btn inum to 4,122,68,164
  4173.   if fldloc = "begin" then
  4174.     set the loc of card btn inum to 36,143
  4175.   end if
  4176.  
  4177.   if fldloc = "yes1" then
  4178.  
  4179.     set the loc of card btn inum to 124,65
  4180.   end if
  4181.   if fldloc = "no1" then
  4182.  
  4183.     set the loc of card btn inum to 128,222
  4184.   end if
  4185.   if fldloc = "no3" then
  4186.  
  4187.     set the loc of card btn inum to 255,114
  4188.   end if
  4189.   if fldloc = "yes3" then
  4190.  
  4191.     set the loc of card btn inum to 251,25
  4192.   end if
  4193.   if fldloc = "yes2" then
  4194.  
  4195.     set the loc of card btn inum to 256,194
  4196.   end if
  4197.  
  4198.   if fldloc = "no2" then
  4199.  
  4200.     set the loc of card btn inum to 256,282
  4201.   end if
  4202.  
  4203.  
  4204.  
  4205.   set the showName of cd btn inum to false
  4206.   set the style of cd btn inum to transparent
  4207.   set the script of card btn inum to "on mouseUp" &return&"show card fld ""e&inum"e &return&"end mouseUp"
  4208.   domenu "back"
  4209.   if aligntype is empty then
  4210.  
  4211.     ask "What type of alignment do you want?" with "Center"
  4212.     put it into al
  4213.   else
  4214.     put aligntype into al
  4215.   end if
  4216.  
  4217.   if fonttype is empty then
  4218.  
  4219.     ask "What type of font do you want?" with "Helvetica"
  4220.     put it into ft
  4221.   else
  4222.     put fonttype into ft
  4223.  
  4224.   end if
  4225.  
  4226.   if sizetype is empty then
  4227.  
  4228.  
  4229.     ask "What size font do you want?" with "24"
  4230.     put it into wer
  4231.   else
  4232.     put sizetype into wer
  4233.   end if
  4234.   domenu "new field"
  4235.   set the name of card fld "" to "ha"
  4236.   set the style of card fld "ha" to scrolling
  4237.   set the rect of card fld "ha" to 6,61,507,200
  4238.   set the textFont of card fld "ha" to ft
  4239.   set the textSize of card fld "ha" to wer
  4240.   set the textAlign of card fld "ha" to al
  4241.   hide card fld "funny"
  4242.   put card fld "funny" into card fld "ha"
  4243.  
  4244.  
  4245.  
  4246.  
  4247.   if buttontype is empty then
  4248.  
  4249.     ask "What type of button do you want?" with "shadow"
  4250.     put it into btntyp
  4251.   else
  4252.     put buttontype into btntyp
  4253.   end if
  4254.  
  4255.   choose button tool
  4256.   put 2 into fun
  4257.   repeat 2 times
  4258.     domenu "new button"
  4259.     set the style of card button fun to btntyp
  4260.     add 1 to fun
  4261.   end repeat
  4262.   butscrip
  4263.   set the loc of card button 2 to 176,253
  4264.   set the loc of card button 3 to 337,253
  4265.   set lockscreen to false
  4266.   hide msg box
  4267.   wait 100
  4268.   answer "Does that look alright" with "No" or "Yes"
  4269.   if it is "No" then
  4270.     tones
  4271.   end if
  4272.  
  4273.  
  4274.   choose browse tool
  4275.   go to card cdname
  4276.   put xx1 into card fld spec1
  4277.   put yy1 into card fld spec2
  4278.   hide me
  4279. end mouseUp
  4280. on butscrip
  4281.   global answertype, xx1,yy1,tox,toy,anx,anyy,saved
  4282.  
  4283.  
  4284.  
  4285.   if answertype = "Variable" or answertype is empty then
  4286.  
  4287.     ask "What is answer number 1" with "9 letters max/Yes or No"
  4288.     put it into xx1
  4289.     put the number of characters of xx1 into zip
  4290.     if zip > 9 then
  4291.       beep 1
  4292.       repeat until zip Γëñ 9
  4293.         beep 1
  4294.         ask "What is answer number 1" with "9 letters max/Yes or No"
  4295.         put it into xx1
  4296.         put the number of characters of xx1 into zip
  4297.  
  4298.       end repeat
  4299.  
  4300.     end if
  4301.     if anx = "Question" then
  4302.  
  4303.       set the script of card button "new button" to "on mouseUp" &return&"go to card ques"&tox &return&"end mouseUp"
  4304.     end if
  4305.     if anx = "Conclusion" then
  4306.  
  4307.       set the script of card button "new button" to "on mouseUp" &return&"go to card con"&tox &return&"end mouseUp"
  4308.     end if
  4309.     if anx = empty then
  4310.  
  4311.       set the script of card button "new button" to "on mouseUp" &return&"go to card "&tox &return&"end mouseUp"
  4312.     end if
  4313.  
  4314.  
  4315.     set the name of card button "new button" to xx1
  4316.  
  4317.     ask "What is answer number 2" with "9 letters max/Yes or No"
  4318.     put it into yy1
  4319.     put the number of characters of yy1 into zip
  4320.     if zip > 9 then
  4321.       beep 1
  4322.       repeat until zip Γëñ 9
  4323.         beep 1
  4324.         ask "What is answer number 2" with "9 letters max/Yes or No"
  4325.         put it into yy1
  4326.         put the number of characters of yy1 into zip
  4327.  
  4328.       end repeat
  4329.  
  4330.     end if
  4331.     if anyy = "Question" then
  4332.  
  4333.       set the script of card button "new button" to "on mouseUp" &return&"go to card ques"&toy &return&"end mouseUp"
  4334.     end if
  4335.     if anyy = "Conclusion" then
  4336.  
  4337.       set the script of card button "new button" to "on mouseUp" &return&"go to card con"&toy &return&"end mouseUp"
  4338.     end if
  4339.     if anyy = empty then
  4340.  
  4341.       set the script of card button "new button" to "on mouseUp" &return&"go to card "&toy &return&"end mouseUp"
  4342.     end if
  4343.     set the name of card button "new button" to yy1
  4344.   end if
  4345.  
  4346.  
  4347.   if anx = empty then
  4348.  
  4349.     if answertype = "True-False" then
  4350.       set the name of card button "new button" to "True"
  4351.       set the script of card button "True" to "on mouseUp" &return&"go to card "&tox &return&"end mouseUp"
  4352.       put "True" into xx1
  4353.     end if
  4354.     if answertype = "A-B" then
  4355.       set the name of card button "new button" to "A"
  4356.       set the script of card button "A" to "on mouseUp" &return&"go to card "&tox &return&"end mouseUp"
  4357.       put "A" into xx1
  4358.     end if
  4359.     if answertype = "Yes-No" then
  4360.       set the name of card button "new button" to "Yes"
  4361.       set the script of card button "Yes" to "on mouseUp" &return&"go to card "&tox &return&"end mouseUp"
  4362.       put "Yes" into xx1
  4363.     end if
  4364.  
  4365.   end if
  4366.   if anyy = empty then
  4367.     if answertype = "True-False" then
  4368.  
  4369.       set the name of card button "new button" to "False"
  4370.       set the script of card button "False" to "on mouseUp" &return&"go to card "&toy &return&"end mouseUp"
  4371.       put "False" into yy1
  4372.  
  4373.     end if
  4374.     if answertype = "A-B" then
  4375.  
  4376.       set the name of card button "new button" to "B"
  4377.       set the script of card button "B" to "on mouseUp" &return&"go to card "&toy &return&"end mouseUp"
  4378.       put "B" into yy1
  4379.     end if
  4380.  
  4381.     if answertype = "Yes-No" then
  4382.  
  4383.       set the name of card button "new button" to "No"
  4384.       set the script of card button "No" to "on mouseUp" &return&"go to card "&toy &return&"end mouseUp"
  4385.       put "No" into yy1
  4386.     end if
  4387.  
  4388.   end if
  4389.  
  4390.  
  4391.  
  4392.   if anx = "Question" then
  4393.  
  4394.     if answertype = "True-False" then
  4395.       set the name of card button "new button" to "True"
  4396.       set the script of card button "True" to "on mouseUp" &return&"go to card ques"&tox &return&"end mouseUp"
  4397.       put "True" into xx1
  4398.     end if
  4399.     if answertype = "A-B" then
  4400.       set the name of card button "new button" to "A"
  4401.       set the script of card button "A" to "on mouseUp" &return&"go to card ques"&tox &return&"end mouseUp"
  4402.       put "A" into xx1
  4403.     end if
  4404.     if answertype = "Yes-No" then
  4405.       set the name of card button "new button" to "Yes"
  4406.       set the script of card button "Yes" to "on mouseUp" &return&"go to card ques"&tox &return&"end mouseUp"
  4407.       put "Yes" into xx1
  4408.     end if
  4409.  
  4410.   end if
  4411.  
  4412.   if anx = "Conclusion" then
  4413.  
  4414.  
  4415.     if answertype = "True-False" then
  4416.       set the name of card button "new button" to "True"
  4417.       set the script of card button "True" to "on mouseUp" &return&"go to card con"&tox &return&"end mouseUp"
  4418.       put "True" into xx1
  4419.     end if
  4420.     if answertype = "A-B" then
  4421.       set the name of card button "new button" to "A"
  4422.       set the script of card button "A" to "on mouseUp" &return&"go to card con"&tox &return&"end mouseUp"
  4423.       put "A" into xx1
  4424.     end if
  4425.     if answertype = "Yes-No" then
  4426.       set the name of card button "new button" to "Yes"
  4427.       set the script of card button "Yes" to "on mouseUp" &return&"go to card con"&tox &return&"end mouseUp"
  4428.       put "Yes" into xx1
  4429.     end if
  4430.  
  4431.   end if
  4432.   if anyy = "Conclusion" then
  4433.     if answertype = "True-False" then
  4434.  
  4435.       set the name of card button "new button" to "False"
  4436.       set the script of card button "False" to "on mouseUp" &return&"go to card con"&toy &return&"end mouseUp"
  4437.       put "False" into yy1
  4438.  
  4439.     end if
  4440.     if answertype = "A-B" then
  4441.  
  4442.       set the name of card button "new button" to "B"
  4443.       set the script of card button "B" to "on mouseUp" &return&"go to card con"&toy &return&"end mouseUp"
  4444.       put "B" into yy1
  4445.  
  4446.     end if
  4447.  
  4448.     if answertype = "Yes-No" then
  4449.  
  4450.       set the name of card button "new button" to "No"
  4451.       set the script of card button "No" to "on mouseUp" &return&"go to card con"&toy &return&"end mouseUp"
  4452.       put "No" into yy1
  4453.     end if
  4454.  
  4455.   end if
  4456.   if anyy = "Question" then
  4457.  
  4458.     if answertype = "True-False" then
  4459.       set the name of card button "new button" to "False"
  4460.       set the script of card button "False" to "on mouseUp" &return&"go to card ques"&toy &return&"end mouseUp"
  4461.       put "False" into yy1
  4462.  
  4463.     end if
  4464.     if answertype = "A-B" then
  4465.       set the name of card button "new button" to "B"
  4466.       set the script of card button "B" to "on mouseUp" &return&"go to card ques"&toy &return&"end mouseUp"
  4467.       put "B" into yy1
  4468.     end if
  4469.  
  4470.     if answertype = "Yes-No" then
  4471.  
  4472.  
  4473.       set the name of card button "new button" to "No"
  4474.       set the script of card button "No" to "on mouseUp" &return&"go to card ques"&toy &return&"end mouseUp"
  4475.       put "No" into yy1
  4476.  
  4477.     end if
  4478.   end if
  4479. end butscrip
  4480.  
  4481.  
  4482.  
  4483.  
  4484.  
  4485.  
  4486. on tones
  4487.   global x, aligntype, buttontype, answertype, fonttype, sizetype, xx1, yy1
  4488.   put empty into card fld "ha"
  4489.   select card button 2
  4490.   domenu "clear button"
  4491.   select card button 2
  4492.   domenu "clear button"
  4493.   choose select tool
  4494.  
  4495.  
  4496.  
  4497.   put card fld fonttypes of card default into ft
  4498.   put card fld fontsize of card default into st
  4499.   put card fld buttontypes of card default into bt
  4500.  
  4501.   answer "Choose type of font do you want?" with "OK"
  4502.   DoList 999,ft,one
  4503.   if the result is empty then
  4504.     put "Geneva" into ft
  4505.   else
  4506.  
  4507.     put item 2 of the result into ft
  4508.   end if
  4509.  
  4510.  
  4511.  
  4512.   answer "Choose size of font do you want?" with "OK"
  4513.   DoList 999,st,one
  4514.   if item 2 of the result is empty then
  4515.     put 24 into st
  4516.   else
  4517.  
  4518.     put item 2 of the result into st
  4519.   end if
  4520.  
  4521.   set the textFont of card fld "ha" to ft
  4522.   set the textSize of card fld "ha" to st
  4523.   answer "Align the field: Left, Right, Center" with "Left" or "Right" or "Center"
  4524.   if it is "Left" then
  4525.     set textAlign of card fld "ha" to left
  4526.   end if
  4527.   if it is "Right" then
  4528.     set textAlign of card fld "ha" to right
  4529.   end if
  4530.   if it is "Center" then
  4531.     set textAlign of card fld "ha" to center
  4532.   end if
  4533.  
  4534.   answer "Choose type of button do you want?" with "OK"
  4535.   DoList 999,bt,one
  4536.   if item 2 of the result is empty then
  4537.     put "Shadow" into bt
  4538.   else
  4539.  
  4540.     put item 2 of the result into bt
  4541.   end if
  4542.  
  4543.  
  4544.  
  4545.   choose button tool
  4546.   put 2 into fun
  4547.   repeat 2 times
  4548.     domenu "new button"
  4549.     set the style of card button fun to bt
  4550.     add 1 to fun
  4551.   end repeat
  4552.   set the loc of card button 2 to 176,253
  4553.   set the loc of card button 3 to 337,253
  4554.  
  4555.   put answertype into saved
  4556.   put variable into answertype
  4557.   butscrip
  4558.  
  4559.  
  4560.   put saved into answertype
  4561.   put card fld "funny" into card fld "ha"
  4562.   wait 100
  4563.   answer "Does that look alright" with "No" or "Yes"
  4564.   if it is "no" then
  4565.     tones
  4566.   end if
  4567.   if xx1 = yy1 then
  4568.     answer "You cannot have two buttons with the same names" with "OK"
  4569.     tones
  4570.   end if
  4571.  
  4572.  
  4573. end tones
  4574.  
  4575.  
  4576. -- part 477 (button)
  4577. -- low flags: 00
  4578. -- high flags: A004
  4579. -- rect: left=411 top=246 right=268 bottom=512
  4580. -- title width / last selected line: 0
  4581. -- icon id / first selected line: 0 / 0
  4582. -- text alignment: 1
  4583. -- font id: 0
  4584. -- text size: 12
  4585. -- style flags: 0
  4586. -- line height: 16
  4587. -- part name: clear tree
  4588. ----- HyperTalk script -----
  4589. on mouseUp
  4590.   answer "This will clear the whole system" with "OK" or "CANCEL"
  4591.   if it is "CANCEL" then exit mouseUp
  4592.   put "WORKING...." into msg
  4593.   set lockscreen to true
  4594.   put empty into card fld "dqcount"
  4595.   put empty into card fld "dccount"
  4596.   put empty into card fld "ans count"
  4597.  
  4598.   put empty into card fld "con count"
  4599.   put empty into card fld "cd count"
  4600.   put empty into card fld yes1
  4601.  
  4602.  
  4603.   put empty into card fld yes2
  4604.   put empty into card fld yes3
  4605.   put empty into card fld yes4
  4606.   put empty into card fld yes5
  4607.   put empty into card fld yes6
  4608.   put empty into card fld yes7
  4609.   put empty into card fld no1
  4610.   put empty into card fld no2
  4611.   put empty into card fld no3
  4612.   put empty into card fld no4
  4613.   put empty into card fld no5
  4614.   put empty into card fld no6
  4615.   put empty into card fld no7
  4616.   put empty into card fld ques1
  4617.  
  4618.   put empty into card fld ques2
  4619.   put empty into card fld ques3
  4620.   put empty into card fld ques4
  4621.   put empty into card fld ques5
  4622.   put empty into card fld ques6
  4623.   put empty into card fld ques7
  4624.   put empty into card fld label1
  4625.  
  4626.   put empty into card fld label2
  4627.   put empty into card fld label3
  4628.   put empty into card fld label4
  4629.   put empty into card fld label5
  4630.   put empty into card fld label6
  4631.   put empty into card fld label7
  4632.  
  4633.   put empty into card fld no4fld
  4634.   put empty into card fld no5fld
  4635.   put empty into card fld no6fld
  4636.   put empty into card fld no7fld
  4637.  
  4638.  
  4639.   put empty into card fld yes4fld
  4640.   put empty into card fld yes5fld
  4641.   put empty into card fld yes6fld
  4642.   put empty into card fld yes7fld
  4643.   put empty into card fld "problem"
  4644.   choose button tool
  4645.   put 7 into y
  4646.  
  4647.   put the number of card buttons into x
  4648.   subtract 6 from x
  4649.   repeat x times
  4650.     select card button y
  4651.     domenu "clear button"
  4652.   end repeat
  4653.   choose field tool
  4654.   put 53 into y
  4655.  
  4656.   put the number of card fields into x
  4657.   subtract 52 from x
  4658.   repeat x times
  4659.     show card fld y
  4660.     select card fld y
  4661.     domenu "clear field"
  4662.   end repeat
  4663.   repeat with x = 1 to the number of cards
  4664.     go to card ques1
  4665.     put the short name of this card into x
  4666.     if x = "Build" or x = "full" or x = "fulltoo" or x = "default" then
  4667.  
  4668.       go to next card
  4669.     else
  4670.       domenu "delete card"
  4671.     end if
  4672.   end repeat
  4673.  
  4674.   choose browse tool
  4675.   go to cd build
  4676.   hide msg
  4677.   set lockscreen to false
  4678. end mouseUp
  4679.  
  4680.  
  4681.  
  4682. -- part 541 (field)
  4683. -- low flags: 80
  4684. -- high flags: 0000
  4685. -- rect: left=397 top=1 right=13 bottom=440
  4686. -- title width / last selected line: 0
  4687. -- icon id / first selected line: 0 / 0
  4688. -- text alignment: 0
  4689. -- font id: 3
  4690. -- text size: 12
  4691. -- style flags: 0
  4692. -- line height: 16
  4693. -- part name: yes7fld
  4694.  
  4695.  
  4696. -- part 542 (field)
  4697. -- low flags: 80
  4698. -- high flags: 0000
  4699. -- rect: left=397 top=39 right=51 bottom=440
  4700. -- title width / last selected line: 0
  4701. -- icon id / first selected line: 0 / 0
  4702. -- text alignment: 0
  4703. -- font id: 3
  4704. -- text size: 12
  4705. -- style flags: 0
  4706. -- line height: 16
  4707. -- part name: no7fld
  4708.  
  4709.  
  4710. -- part 543 (field)
  4711. -- low flags: 80
  4712. -- high flags: 0000
  4713. -- rect: left=400 top=92 right=104 bottom=443
  4714. -- title width / last selected line: 0
  4715. -- icon id / first selected line: 0 / 0
  4716. -- text alignment: 0
  4717. -- font id: 3
  4718. -- text size: 12
  4719. -- style flags: 0
  4720. -- line height: 16
  4721. -- part name: yes6fld
  4722.  
  4723.  
  4724. -- part 544 (field)
  4725. -- low flags: 80
  4726. -- high flags: 0000
  4727. -- rect: left=402 top=123 right=135 bottom=445
  4728. -- title width / last selected line: 0
  4729. -- icon id / first selected line: 0 / 0
  4730. -- text alignment: 0
  4731. -- font id: 3
  4732. -- text size: 12
  4733. -- style flags: 0
  4734. -- line height: 16
  4735. -- part name: no6fld
  4736.  
  4737.  
  4738. -- part 545 (field)
  4739. -- low flags: 80
  4740. -- high flags: 0000
  4741. -- rect: left=403 top=172 right=188 bottom=457
  4742. -- title width / last selected line: 0
  4743. -- icon id / first selected line: 0 / 0
  4744. -- text alignment: 0
  4745. -- font id: 3
  4746. -- text size: 12
  4747. -- style flags: 0
  4748. -- line height: 16
  4749. -- part name: yes5fld
  4750.  
  4751.  
  4752. -- part 546 (field)
  4753. -- low flags: 80
  4754. -- high flags: 0000
  4755. -- rect: left=404 top=205 right=217 bottom=447
  4756. -- title width / last selected line: 0
  4757. -- icon id / first selected line: 0 / 0
  4758. -- text alignment: 0
  4759. -- font id: 3
  4760. -- text size: 12
  4761. -- style flags: 0
  4762. -- line height: 16
  4763. -- part name: no5fld
  4764.  
  4765.  
  4766. -- part 547 (field)
  4767. -- low flags: 80
  4768. -- high flags: 0000
  4769. -- rect: left=403 top=263 right=275 bottom=446
  4770. -- title width / last selected line: 0
  4771. -- icon id / first selected line: 0 / 0
  4772. -- text alignment: 0
  4773. -- font id: 3
  4774. -- text size: 12
  4775. -- style flags: 0
  4776. -- line height: 16
  4777. -- part name: yes4fld
  4778.  
  4779.  
  4780. -- part 548 (field)
  4781. -- low flags: 80
  4782. -- high flags: 0000
  4783. -- rect: left=403 top=294 right=306 bottom=446
  4784. -- title width / last selected line: 0
  4785. -- icon id / first selected line: 0 / 0
  4786. -- text alignment: 0
  4787. -- font id: 3
  4788. -- text size: 12
  4789. -- style flags: 0
  4790. -- line height: 16
  4791. -- part name: no4fld
  4792.  
  4793.  
  4794. -- part 582 (button)
  4795. -- low flags: 00
  4796. -- high flags: A004
  4797. -- rect: left=411 top=294 right=316 bottom=512
  4798. -- title width / last selected line: 0
  4799. -- icon id / first selected line: 0 / 0
  4800. -- text alignment: 1
  4801. -- font id: 0
  4802. -- text size: 12
  4803. -- style flags: 0
  4804. -- line height: 16
  4805. -- part name: Default
  4806. ----- HyperTalk script -----
  4807. on mouseUp
  4808.   go to card default
  4809.   show card button "To tree"
  4810.   hide card button "return"
  4811. end mouseUp
  4812.  
  4813.  
  4814.  
  4815. -- part 1710 (field)
  4816. -- low flags: 01
  4817. -- high flags: 0007
  4818. -- rect: left=402 top=89 right=175 bottom=510
  4819. -- title width / last selected line: 0
  4820. -- icon id / first selected line: 0 / 0
  4821. -- text alignment: 0
  4822. -- font id: 3
  4823. -- text size: 9
  4824. -- style flags: 0
  4825. -- line height: 12
  4826. -- part name: problem
  4827.  
  4828.  
  4829. -- part 1711 (field)
  4830. -- low flags: 01
  4831. -- high flags: 0007
  4832. -- rect: left=124 top=304 right=342 bottom=182
  4833. -- title width / last selected line: 0
  4834. -- icon id / first selected line: 0 / 0
  4835. -- text alignment: 0
  4836. -- font id: 3
  4837. -- text size: 9
  4838. -- style flags: 0
  4839. -- line height: 12
  4840. -- part name: dccount
  4841.  
  4842.  
  4843. -- part 1760 (field)
  4844. -- low flags: 00
  4845. -- high flags: 0007
  4846. -- rect: left=31 top=304 right=342 bottom=88
  4847. -- title width / last selected line: 0
  4848. -- icon id / first selected line: 0 / 0
  4849. -- text alignment: 0
  4850. -- font id: 3
  4851. -- text size: 9
  4852. -- style flags: 0
  4853. -- line height: 12
  4854. -- part name: dqcount
  4855.  
  4856.  
  4857. -- part 2001 (button)
  4858. -- low flags: 00
  4859. -- high flags: A004
  4860. -- rect: left=411 top=270 right=292 bottom=512
  4861. -- title width / last selected line: 0
  4862. -- icon id / first selected line: 0 / 0
  4863. -- text alignment: 1
  4864. -- font id: 0
  4865. -- text size: 12
  4866. -- style flags: 0
  4867. -- line height: 16
  4868. -- part name: Edit
  4869. ----- HyperTalk script -----
  4870. on mouseUp
  4871.   global tox, toy, fldloc, qcc, btn1, btn2, cdname, answertype, rpl1, rpl2, anx, anyy, rem, pp, spec1, spec2
  4872.   put empty into spec1
  4873.   put empty into spec2
  4874.   put empty into fldloc
  4875.   put empty into anx
  4876.   put empty into anyy
  4877.   put the short name of this card into temp
  4878.   put empty into a
  4879.   put empty into b
  4880.   put empty into c
  4881.   put empty into d
  4882.   put empty into e
  4883.   put empty into f
  4884.   put empty into g
  4885.  
  4886.   put card fld ques1 into a
  4887.   put card fld label1 into a1
  4888.   put card fld ques2 into b
  4889.   put card fld label2 into b1
  4890.   put card fld ques3 into c
  4891.   put card fld label3 into c1
  4892.   put card fld ques4 into d
  4893.   put card fld label4 into d1
  4894.   put card fld ques5 into e
  4895.   put card fld label5 into e1
  4896.   put card fld ques6 into f
  4897.   put card fld label6 into f1
  4898.   put card fld ques7 into g
  4899.   put card fld label7 into g1
  4900.   put empty into a3
  4901.   put empty into b3
  4902.   put empty into c3
  4903.   put empty into d3
  4904.   put empty into e3
  4905.   put empty into f3
  4906.   put empty into g3
  4907.  
  4908.   answer"Edit 1.Question or 2.Conclusion" with "Ques" or "Con" or "Cancel"
  4909.  
  4910.   put it into rem
  4911.   if rem is "Cancel" then exit mouseUp
  4912.  
  4913.   if rem is "Ques" then
  4914.     ask "Enter the question number to delete"
  4915.     if it is empty then exit mouseUp
  4916.     put it into pain
  4917.     set lockscreen to true
  4918.     put "WORKING.." into msg
  4919.     go to card "ques"&pain
  4920.     put the id of this card into nm
  4921.     domenu "delete card"
  4922.     go to card temp
  4923.   end if
  4924.   if rem is "Con" then
  4925.  
  4926.  
  4927.     ask "Enter the conclusion number to delete"
  4928.     if it is empty then exit mouseUp
  4929.     hide msg
  4930.     set lockscreen to true
  4931.     put it into pain
  4932.     if a = pain and a1 = "Conclusion" then
  4933.       add 10000 to pain
  4934.       go to card "con"&pain
  4935.       subtract 10000 from pain
  4936.       put the id of this card into nm
  4937.       domenu "delete card"
  4938.       go to card temp
  4939.     else
  4940.  
  4941.       put it into pain
  4942.       go to card "con"&pain
  4943.       put the id of this card into nm
  4944.       domenu "delete card"
  4945.       go to card temp
  4946.     end if
  4947.   end if
  4948.  
  4949.  
  4950.   put the short name of this card into cdname
  4951.   if a = pain and a1 = "Question" and rem = "Ques" then
  4952.     if cdname Γëá "full" then
  4953.  
  4954.       put card fld "ques2" into vir
  4955.       put card fld "ques3" into vir2
  4956.       if vir is empty and vir2 is empty then
  4957.  
  4958.         put "butques"&pain into work
  4959.         put "bac"&pain into wk
  4960.  
  4961.         get loc of card button wk
  4962.  
  4963.  
  4964.         get loc of card button wk
  4965.         click at it
  4966.         select card button work
  4967.         domenu "clear button"
  4968.         put the short name of this card into finn
  4969.         domenu "back"
  4970.         domenu "delete card"
  4971.         go to card finn
  4972.         subtract 1 from card fld "cd count"
  4973.         subtract 1 from card fld "ans count"
  4974.         show card fld "yes6fld"
  4975.         find "ques"&pain in any card fld
  4976.         put the foundField into jane
  4977.         show jane
  4978.         select text in jane
  4979.         domenu "Clear Text"
  4980.         choose browse tool
  4981.         hide jane
  4982.         if cd fld dqcount = 0 then
  4983.           put pain&"," into card fld dqcount
  4984.         else
  4985.           put ","&pain after last item in card fld dqcount
  4986.         end if
  4987.  
  4988.  
  4989.       end if
  4990.  
  4991.     else
  4992.  
  4993.       subtract 1 from card fld "ans count"
  4994.  
  4995.       put 100 into a3
  4996.       select card button nm
  4997.       domenu "clear button"
  4998.       show card fld nm
  4999.       select card fld nm
  5000.       domenu "clear field"
  5001.  
  5002.       put empty into card fld yes1
  5003.       put empty into card fld no1
  5004.       put empty into card fld ques1
  5005.       put empty into card fld label1
  5006.  
  5007.  
  5008.       put card fld "ques2" into vir
  5009.       put card fld "ques3" into vir2
  5010.  
  5011.       if vir is empty and vir2 is empty then
  5012.         go to card build
  5013.         choose browse tool
  5014.         put empty into a3
  5015.         hide msg
  5016.         exit mouseUp
  5017.  
  5018.  
  5019.       end if
  5020.  
  5021.     end if
  5022.   end if
  5023.  
  5024.   choose browse tool
  5025.  
  5026.  
  5027.   if b = pain and b1 = "Question" and rem = "Ques" then
  5028.     put 100 into b3
  5029.     select card button nm
  5030.     domenu "clear button"
  5031.     show card fld nm
  5032.     select card fld nm
  5033.     domenu "clear field"
  5034.     put empty into card fld yes3
  5035.     put empty into card fld no3
  5036.     put empty into card fld ques2
  5037.     put empty into card fld label2
  5038.     subtract 1 from card fld "ans count"
  5039.     choose browse tool
  5040.     if cd fld dqcount = 0 then
  5041.       put pain&"," into card fld dqcount
  5042.     else
  5043.       put ","&pain after last item in card fld dqcount
  5044.     end if
  5045.  
  5046.   end if
  5047.   if c = pain and c1 = "Question" and rem = "Ques" then
  5048.     put 100 into c3
  5049.     select card button nm
  5050.     domenu "clear button"
  5051.     show card fld nm
  5052.     select card fld nm
  5053.     domenu "clear field"
  5054.     put empty into card fld yes2
  5055.     put empty into card fld no2
  5056.     put empty into card fld ques3
  5057.     put empty into card fld label3
  5058.     subtract 1 from card fld "ans count"
  5059.     choose browse tool
  5060.     if cd fld dqcount = 0 then
  5061.       put pain&"," into card fld dqcount
  5062.     else
  5063.       put ","&pain after last item in card fld dqcount
  5064.     end if
  5065.  
  5066.   end if
  5067.   if d = pain and d1 = "Question" and rem = "Ques" then
  5068.  
  5069.     put 100 into d3
  5070.     select card button nm
  5071.     domenu "clear button"
  5072.     show card fld nm
  5073.     select card fld nm
  5074.     domenu "clear field"
  5075.     put empty into card fld yes4
  5076.     put empty into card fld no4
  5077.     put empty into card fld ques4
  5078.     put empty into card fld label4
  5079.     subtract 1 from card fld "ans count"
  5080.     choose browse tool
  5081.     if cd fld dqcount = 0 then
  5082.       put pain&"," into card fld dqcount
  5083.     else
  5084.       put ","&pain after last item in card fld dqcount
  5085.     end if
  5086.  
  5087.   end if
  5088.   if e = pain and e1 = "Question" and rem = "Ques" then
  5089.     put 100 into e3
  5090.     select card button nm
  5091.     domenu "clear button"
  5092.     show card fld nm
  5093.     select card fld nm
  5094.     domenu "clear field"
  5095.     put empty into card fld yes5
  5096.     put empty into card fld no5
  5097.     put empty into card fld ques5
  5098.     put empty into card fld label5
  5099.     subtract 1 from card fld "ans count"
  5100.     choose browse tool
  5101.     if cd fld dqcount = 0 then
  5102.       put pain&"," into card fld dqcount
  5103.     else
  5104.       put ","&pain after last item in card fld dqcount
  5105.     end if
  5106.  
  5107.   end if
  5108.   if f = pain and f1 = "Question" and rem = "Ques" then
  5109.     put 100 into f3
  5110.     select card button nm
  5111.     domenu "clear button"
  5112.     show card fld nm
  5113.     select card fld nm
  5114.     domenu "clear field"
  5115.     put empty into card fld yes6
  5116.     put empty into card fld no6
  5117.     put empty into card fld ques6
  5118.     put empty into card fld label6
  5119.     subtract 1 from card fld "ans count"
  5120.     choose browse tool
  5121.     if cd fld dqcount = 0 then
  5122.       put pain&"," into card fld dqcount
  5123.     else
  5124.       put ","&pain after last item in card fld dqcount
  5125.     end if
  5126.  
  5127.   end if
  5128.   if g = pain and g1 = "Question" and rem = "Ques" then
  5129.     put 100 into g3
  5130.     select card button nm
  5131.     domenu "clear button"
  5132.     show card fld nm
  5133.     select card fld nm
  5134.     domenu "clear field"
  5135.     put empty into card fld yes7
  5136.     put empty into card fld no7
  5137.     put empty into card fld ques7
  5138.     put empty into card fld label7
  5139.     subtract 1 from card fld "ans count"
  5140.     choose browse tool
  5141.     if cd fld dqcount = 0 then
  5142.       put pain&"," into card fld dqcount
  5143.     else
  5144.       put ","&pain after last item in card fld dqcount
  5145.     end if
  5146.   end if
  5147.  
  5148.   if a = pain and a1 = "Conclusion" and rem = "Con" then
  5149.     if cdname Γëá "full" then
  5150.  
  5151.       add 10000 to pain
  5152.       put "butcon"&pain into work
  5153.       put "bac"&pain into wk
  5154.       subtract 10000 from pain
  5155.       get loc of card button wk
  5156.       click at it
  5157.       select card button work
  5158.       domenu "clear button"
  5159.       put the short name of this card into finn
  5160.       domenu "back"
  5161.       domenu "delete card"
  5162.       go to card finn
  5163.       subtract 1 from card fld "cd count"
  5164.       subtract 1 from card fld "con count"
  5165.       add 10000 to pain
  5166.       find "con"&pain in any card fld
  5167.       put the foundField into jane
  5168.       show jane
  5169.       select text in jane
  5170.       domenu "Clear Text"
  5171.       choose browse tool
  5172.       hide jane
  5173.       subtract 10000 from pain
  5174.       choose browse tool
  5175.       if cd fld dccount of cd full = 0 then
  5176.         put pain&"," into card fld dccount
  5177.       else
  5178.         put ","&pain after last item in card fld dccount
  5179.       end if
  5180.  
  5181.  
  5182.  
  5183.     else
  5184.  
  5185.       put 100 into a3
  5186.       select card button button1
  5187.       domenu "clear button"
  5188.       show card fld answer1
  5189.       select card fld answer1
  5190.       domenu "clear field"
  5191.       put empty into card fld yes1
  5192.       put empty into card fld no1
  5193.       put empty into card fld ques1
  5194.       put empty into card fld label1
  5195.  
  5196.       choose browse tool
  5197.     end if
  5198.  
  5199.   end if
  5200.   if b = pain and b1 = "Conclusion" and rem = "Con" then
  5201.     put 100 into b3
  5202.     select card button nm
  5203.     domenu "clear button"
  5204.     show card fld nm
  5205.     select card fld nm
  5206.     domenu "clear field"
  5207.     put empty into card fld yes3
  5208.     put empty into card fld no3
  5209.     put empty into card fld ques2
  5210.     put empty into card fld label2
  5211.     subtract 1 from card fld "con count"
  5212.     choose browse tool
  5213.     if cd fld dccount = 0 then
  5214.       put pain&"," into card fld dccount
  5215.     else
  5216.       put ","&pain after last item in card fld dccount
  5217.     end if
  5218.  
  5219.   end if
  5220.   if c = pain and c1 = "Conclusion" and rem = "Con" then
  5221.  
  5222.     put 100 into c3
  5223.     select card button nm
  5224.     domenu "clear button"
  5225.     show card fld nm
  5226.     select card fld nm
  5227.     domenu "clear field"
  5228.     put empty into card fld yes2
  5229.     put empty into card fld no2
  5230.     put empty into card fld ques3
  5231.     put empty into card fld label3
  5232.     subtract 1 from card fld "con count"
  5233.     choose browse tool
  5234.     if cd fld dccount = 0 then
  5235.       put pain&"," into card fld dccount
  5236.     else
  5237.       put ","&pain after last item in card fld dccount
  5238.     end if
  5239.   end if
  5240.   if d = pain and d1 = "Conclusion" and rem = "Con" then
  5241.     put 100 into d3
  5242.     select card button nm
  5243.     domenu "clear button"
  5244.     show card fld nm
  5245.     select card fld nm
  5246.     domenu "clear field"
  5247.     put empty into card fld yes4
  5248.     put empty into card fld no4
  5249.     put empty into card fld ques4
  5250.     put empty into card fld label4
  5251.     subtract 1 from card fld "con count"
  5252.     choose browse tool
  5253.     if cd fld dccount = 0 then
  5254.       put pain&"," into card fld dccount
  5255.     else
  5256.       put ","&pain after last item in card fld dccount
  5257.     end if
  5258.   end if
  5259.   if e = pain and e1 = "Conclusion" and rem = "Con" then
  5260.     put 100 into e3
  5261.     select card button nm
  5262.     domenu "clear button"
  5263.     show card fld nm
  5264.     select card fld nm
  5265.     domenu "clear field"
  5266.     put empty into card fld yes5
  5267.     put empty into card fld no5
  5268.     put empty into card fld ques5
  5269.     put empty into card fld label5
  5270.     subtract 1 from card fld "con count"
  5271.     choose browse tool
  5272.     if cd fld dccount = 0 then
  5273.       put pain&"," into card fld dccount
  5274.     else
  5275.       put ","&pain after last item in card fld dccount
  5276.     end if
  5277.   end if
  5278.  
  5279.   if f = pain and f1 = "Conclusion" and rem = "Con" then
  5280.     put 100 into f3
  5281.     select card button nm
  5282.     domenu "clear button"
  5283.     show card fld nm
  5284.     select card fld nm
  5285.     domenu "clear field"
  5286.     put empty into card fld yes6
  5287.     put empty into card fld no6
  5288.     put empty into card fld ques6
  5289.     put empty into card fld label6
  5290.     subtract 1 from card fld "con count"
  5291.     choose browse tool
  5292.     if cd fld dccount = 0 then
  5293.       put pain&"," into card fld dccount
  5294.     else
  5295.       put ","&pain after last item in card fld dccount
  5296.     end if
  5297.   end if
  5298.   if g = pain and g1 = "Conclusion" and rem = "Con" then
  5299.     put 100 into g3
  5300.     select card button nm
  5301.     domenu "clear button"
  5302.     show card fld nm
  5303.     select card fld nm
  5304.     domenu "clear field"
  5305.     put empty into card fld yes7
  5306.     put empty into card fld no7
  5307.     put empty into card fld ques7
  5308.     put empty into card fld label7
  5309.     subtract 1 from card fld "con count"
  5310.     choose browse tool
  5311.     if cd fld dccount = 0 then
  5312.       put pain&"," into card fld dccount
  5313.     else
  5314.       put ","&pain after last item in card fld dccount
  5315.     end if
  5316.   end if
  5317.   if a3 = 100 then
  5318.     put card fld label2 into anx
  5319.     put card fld label3 into anyy
  5320.     put card fld ques2 into x
  5321.     put card fld ques3 into y
  5322.     if x is empty and y is empty then
  5323.       hide msg
  5324.       exit mouseUp
  5325.     else
  5326.  
  5327.       add 1 to card fld "ans count"
  5328.       if rem = "Con" then
  5329.         put "Conclusion" into card fld label1
  5330.         if the number of items in cd fld dccount = 1 then
  5331.           put 0 into card fld dqcount
  5332.         else
  5333.           delete last item of card fld dccount
  5334.         end if
  5335.       else
  5336.         put "Question" into card fld label1
  5337.         if the number of items in cd fld dqcount = 1 then
  5338.           put 0 into card fld dqcount
  5339.         else
  5340.           delete last item of card fld dqcount
  5341.         end if
  5342.       end if
  5343.  
  5344.       put x into tox
  5345.       put y into toy
  5346.       put a into qcc
  5347.       put a into card fld ques1
  5348.       put "begin" into fldloc
  5349.       answer "There is a question after this question" with "OK"
  5350.       answer "We must do a replacement question" with "OK"
  5351.  
  5352.  
  5353.  
  5354.       replace
  5355.       put rpl1 into card fld yes1
  5356.       put "yes1" into spec1
  5357.       put rpl1 into btn1
  5358.       put rpl2 into card fld no1
  5359.       put rpl2 into btn2
  5360.       put "no1" into spec2
  5361.       fill
  5362.     end if
  5363.   end if
  5364.  
  5365.   if b3 = 100 then
  5366.     put card fld label7 into anx
  5367.     put card fld label6 into anyy
  5368.     put card fld ques7 into x
  5369.     put card fld ques6 into y
  5370.     if x is empty and y is empty then
  5371.       hide msg
  5372.       exit mouseUp
  5373.     else
  5374.  
  5375.       add 1 to card fld "ans count"
  5376.       if rem = "Con" then
  5377.         put "Conclusion" into card fld label2
  5378.         if the number of items in cd fld dccount = 1 then
  5379.           put 0 into card fld dqcount
  5380.         else
  5381.           delete last item of card fld dccount
  5382.         end if
  5383.       else
  5384.         put "Question" into card fld label2
  5385.         if the number of items in cd fld dqcount = 1 then
  5386.           put 0 into card fld dqcount
  5387.         else
  5388.           delete last item of card fld dqcount
  5389.         end if
  5390.       end if
  5391.  
  5392.       put x into tox
  5393.       put y into toy
  5394.       put b into qcc
  5395.       put b into card fld ques2
  5396.       put "yes1" into fldloc
  5397.       answer "There is a question after this question" with "OK"
  5398.       answer "We must do a replacement question" with "OK"
  5399.  
  5400.  
  5401.       replace
  5402.       put rpl1 into card fld yes3
  5403.       put "yes3" into spec1
  5404.       put rpl1 into btn1
  5405.       put rpl2 into card fld no3
  5406.       put rpl2 into btn2
  5407.       put "no3" into spec2
  5408.       fill
  5409.     end if
  5410.   end if
  5411.   if c3 = 100 then
  5412.     put card fld label5 into anx
  5413.     put card fld label4 into anyy
  5414.     put card fld ques5 into x
  5415.     put card fld ques4 into y
  5416.     if x is empty and y is empty then
  5417.       hide msg
  5418.       exit mouseUp
  5419.     else
  5420.  
  5421.       add 1 to card fld "ans count"
  5422.       if rem = "Con" then
  5423.         put "Conclusion" into card fld label3
  5424.         if the number of items in cd fld dqcount = 1 then
  5425.           put 0 into card fld dccount
  5426.         else
  5427.           delete last item of card fld dccount
  5428.         end if
  5429.       else
  5430.         put "Question" into card fld label3
  5431.         if the number of items in cd fld dqcount = 1 then
  5432.           put 0 into card fld dqcount
  5433.         else
  5434.           delete last item of card fld dqcount
  5435.         end if
  5436.       end if
  5437.       put x into tox
  5438.       put y into toy
  5439.       put c into qcc
  5440.       put c into card fld ques3
  5441.       put "no1" into fldloc
  5442.       answer "There is a question after this question" with "OK"
  5443.       answer "We must do a replacement question" with "OK"
  5444.  
  5445.       replace
  5446.       put rpl1 into card fld yes2
  5447.       put "yes2" into spec1
  5448.       put rpl1 into btn1
  5449.       put rpl2 into card fld no2
  5450.       put rpl2 into btn2
  5451.       put "no2" into spec2
  5452.       fill
  5453.     end if
  5454.   end if
  5455.   if d3 = 100 then
  5456.     put card fld yes4fld into x
  5457.     put card fld no4fld into y
  5458.     if x is empty and y is empty then
  5459.       hide msg
  5460.       exit mouseUp
  5461.     else
  5462.  
  5463.       add 1 to card fld "ans count"
  5464.       if rem = "Con" then
  5465.         put "Conclusion" into card fld label4
  5466.         if the number of items in cd fld dccount = 1 then
  5467.           put 0 into card fld dqcount
  5468.         else
  5469.           delete last item of card fld dccount
  5470.         end if
  5471.       else
  5472.         put "Question" into card fld label4
  5473.         if the number of items in cd fld dqcount = 1 then
  5474.           put 0 into card fld dqcount
  5475.         else
  5476.           delete last item of card fld dqcount
  5477.         end if
  5478.       end if
  5479.  
  5480.       put x into tox
  5481.       put y into toy
  5482.       put d into qcc
  5483.       put d into card fld ques4
  5484.       put "no2" into fldloc
  5485.       answer "There is a question after this question" with "OK"
  5486.       answer "We must do a replacement question" with "OK"
  5487.  
  5488.       replace
  5489.       put rpl1 into card fld yes4
  5490.       put "yes4" into spec1
  5491.       put rpl1 into btn1
  5492.       put rpl2 into card fld no4
  5493.       put rpl2 into btn2
  5494.       put "no4" into spec2
  5495.       fill
  5496.     end if
  5497.   end if
  5498.   if e3 = 100 then
  5499.     put card fld yes5fld into x
  5500.     put card fld no5fld into y
  5501.     if x is empty and y is empty then
  5502.       hide msg
  5503.       exit mouseUp
  5504.     else
  5505.  
  5506.       add 1 to card fld "ans count"
  5507.       if rem = "Con" then
  5508.         put "Conclusion" into card fld label5
  5509.         if the number of items in cd fld dqcount = 1 then
  5510.           put 0 into card fld dccount
  5511.         else
  5512.           delete last item of card fld dccount
  5513.         end if
  5514.       else
  5515.         put "Question" into card fld label5
  5516.         if the number of items in cd fld dqcount = 1 then
  5517.           put 0 into card fld dqcount
  5518.         else
  5519.           delete last item of card fld dqcount
  5520.         end if
  5521.       end if
  5522.  
  5523.       put x into tox
  5524.       put y into toy
  5525.       put e into qcc
  5526.       put e into card fld ques5
  5527.       put "yes2" into fldloc
  5528.  
  5529.       answer "There is a question after this question" with "OK"
  5530.  
  5531.       answer "We must do a replacement question" with "OK"
  5532.  
  5533.  
  5534.       replace
  5535.       put rpl1 into card fld yes5
  5536.       put "yes5" into spec1
  5537.       put rpl1 into btn1
  5538.       put rpl2 into card fld no5
  5539.       put rpl2 into btn2
  5540.       put "no5" into spec2
  5541.       fill
  5542.     end if
  5543.   end if
  5544.   if f3 = 100 then
  5545.     put card fld yes6fld into x
  5546.     put card fld no6fld into y
  5547.     if x is empty and y is empty then
  5548.       hide msg
  5549.       exit mouseUp
  5550.     else
  5551.  
  5552.       add 1 to card fld "ans count"
  5553.       if rem = "Con" then
  5554.         put "Conclusion" into card fld label6
  5555.         if the number of items in cd fld dccount = 1 then
  5556.           put 0 into card fld dccount
  5557.         else
  5558.           delete last item of card fld dqcount
  5559.         end if
  5560.       else
  5561.         put "Question" into card fld label6
  5562.         if the number of items in cd fld dqcount = 1 then
  5563.           put 0 into card fld dqcount
  5564.         else
  5565.           delete last item of card fld dqcount
  5566.         end if
  5567.  
  5568.       end if
  5569.  
  5570.       put x into tox
  5571.       put y into toy
  5572.       put f into qcc
  5573.       put f into card fld ques6
  5574.       put "no3" into fldloc
  5575.       answer "There is a question after this question" with "OK"
  5576.  
  5577.       answer "We must do a replacement question" with "OK"
  5578.       if the number of items in cd fld dqcount = 1 then
  5579.         put 0 into card fld dqcount
  5580.       else
  5581.         delete last item of card fld dqcount
  5582.       end if
  5583.  
  5584.       replace
  5585.       put rpl1 into card fld yes6
  5586.       put "yes6" into spec1
  5587.       put rpl1 into btn1
  5588.       put rpl2 into card fld no6
  5589.       put rpl2 into btn2
  5590.       put "no6" into spec2
  5591.       fill
  5592.     end if
  5593.   end if
  5594.   if g3 = 100 then
  5595.     put card fld yes7fld into x
  5596.     put card fld no7fld into y
  5597.     if x is empty and y is empty then
  5598.       hide msg
  5599.       exit mouseUp
  5600.     else
  5601.  
  5602.       add 1 to card fld "ans count"
  5603.       if rem = "Con" then
  5604.         put "Conclusion" into card fld label7
  5605.         if the number of items in cd fld dccount = 1 then
  5606.           put 0 into card fld dqcount
  5607.         else
  5608.           delete last item of card fld dccount
  5609.         end if
  5610.       else
  5611.         put "Question" into card fld label7
  5612.         if the number of items in cd fld dqcount = 1 then
  5613.           put 0 into card fld dqcount
  5614.         else
  5615.           delete last item of card fld dqcount
  5616.         end if
  5617.       end if
  5618.  
  5619.  
  5620.       put x into tox
  5621.       put y into toy
  5622.       put g into qcc
  5623.       put g into card fld ques7
  5624.       put "yes3" into fldloc
  5625.       answer "There is a question after this question" with "OK"
  5626.  
  5627.       answer "We must do a replacement question" with "OK"
  5628.       if the number of items in cd fld dqcount = 1 then
  5629.         put 0 into card fld dqcount
  5630.       else
  5631.         delete last item of card fld dqcount
  5632.       end if
  5633.  
  5634.       replace
  5635.       put rpl1 into card fld yes7
  5636.       put "yes7" into spec1
  5637.       put rpl1 into btn1
  5638.       put rpl2 into card fld no7
  5639.       put rpl2 into btn2
  5640.       put "no7" into spec2
  5641.       fill
  5642.     end if
  5643.   end if
  5644.   set lockscreen to false
  5645.   hide msg
  5646. end mouseUp
  5647.  
  5648. on fill
  5649.   global qcc, rem, pp
  5650.   put script of card fld "deleted" into pp
  5651.   go to last card
  5652.   domenu "new card"
  5653.   choose text tool
  5654.   set textAlign to left
  5655.   set textSize to 24
  5656.   set textStyle to bold, underline
  5657.  
  5658.   click at 10,44
  5659.   if rem = "Ques" then
  5660.  
  5661.     type "Question:"
  5662.     set the name of this card to "ques"&qcc
  5663.   else
  5664.     type "Conclusion"
  5665.     set the name of this card to "con"&qcc
  5666.   end if
  5667.  
  5668.   choose button tool
  5669.   domenu "new button"
  5670.   set name of card button "new button" to "finished"
  5671.   set rect of card button "finished" to 229,330,303,342
  5672.   set script of card button "finished" to pp
  5673.   choose browse tool
  5674.  
  5675.  
  5676.   domenu "new field"
  5677.   set the name of card fld "" to "funny"
  5678.   set the textAlign of card fld "funny" to center
  5679.   set the style of card fld funny to scrolling
  5680.  
  5681.   choose browse tool
  5682.  
  5683.   click at 246,131
  5684. end fill
  5685. on replace
  5686.   global answertype, rpl1, rpl2
  5687.  
  5688.   if answertype = "True-False" then
  5689.  
  5690.     put "True" into rpl1
  5691.     put "False" into rpl2
  5692.   end if
  5693.   if answertype = "A-B" then
  5694.  
  5695.     put "A" into rpl1
  5696.     put "B" into rpl2
  5697.   end if
  5698.   if answertype = "Yes-No" then
  5699.  
  5700.     put "Yes" into rpl1
  5701.     put "No" into rpl2
  5702.   end if
  5703.  
  5704. end replace
  5705.  
  5706.  
  5707.  
  5708. -- part 2025 (field)
  5709. -- low flags: 80
  5710. -- high flags: 0000
  5711. -- rect: left=316 top=330 right=342 bottom=330
  5712. -- title width / last selected line: 0
  5713. -- icon id / first selected line: 0 / 0
  5714. -- text alignment: 0
  5715. -- font id: 3
  5716. -- text size: 12
  5717. -- style flags: 0
  5718. -- line height: 16
  5719. -- part name: expertmenu
  5720. ----- HyperTalk script -----
  5721. on mouseUp
  5722.  
  5723.   ask "Enter the edit id number to delete"
  5724.   if it is empty then exit mouseup
  5725.   put it into x
  5726.   put the number of card flds into tot
  5727.   if x > tot then
  5728.     answer "There is no id number "&x
  5729.     exit mouseUp
  5730.   end if
  5731.  
  5732.   answer "Are you sure you want to delete item "&x with "OK" or "Wait"
  5733.   if it is "Wait" then exit mouseUp
  5734.  
  5735.   put the short name of card fld x into dl
  5736.   delete first word of dl
  5737.   delete first character of dl
  5738.   delete last character of dl
  5739.  
  5740.   put deletefile(dl) into returnthis
  5741.   if returnthis = 0 then
  5742.     answer "It is gone"
  5743.   else
  5744.  
  5745.     if returnthis < 0 then
  5746.       OsErr returnthis
  5747.     else
  5748.  
  5749.       answer "Whoops, there was an error"
  5750.     end if
  5751.  
  5752.   end if
  5753.  
  5754.   put the number of cards into y
  5755.   if y > 1 then
  5756.     put the short name of this card into nme
  5757.     go to last card
  5758.     put the number of card buttons into cb
  5759.     put card fld cb into saved
  5760.     put the script of card button cb into savedbtn
  5761.  
  5762.     if cb = 1 then
  5763.       domenu "delete card"
  5764.     else
  5765.  
  5766.  
  5767.  
  5768.       choose field tool
  5769.       select card fld cb
  5770.       domenu "clear field"
  5771.  
  5772.       choose button tool
  5773.       select button cb
  5774.       domenu "clear button"
  5775.  
  5776.       subtract 1 from bg fld hidder
  5777.     end if
  5778.  
  5779.     go to card nme
  5780.     put saved into card fld x
  5781.     set the script of card button x to savedbtn
  5782.     choose fld tool
  5783.  
  5784.   else
  5785.     put the number of card buttons into cb
  5786.     choose field tool
  5787.     select card fld cb
  5788.     domenu "clear field"
  5789.  
  5790.     choose button tool
  5791.     select button cb
  5792.     domenu "clear button"
  5793.  
  5794.     subtract 1 from bg fld hidder
  5795.     choose browse tool
  5796.  
  5797.   end if
  5798.   choose browse tool
  5799.   if y > 1 then
  5800.  
  5801.     answer "It was replaced with the last menu item" with "OK"
  5802.   end if
  5803.  
  5804. end mouseUp
  5805.  
  5806.  
  5807.  
  5808. -- part 2035 (field)
  5809. -- low flags: 80
  5810. -- high flags: 0000
  5811. -- rect: left=297 top=330 right=342 bottom=311
  5812. -- title width / last selected line: 0
  5813. -- icon id / first selected line: 0 / 0
  5814. -- text alignment: 0
  5815. -- font id: 3
  5816. -- text size: 12
  5817. -- style flags: 0
  5818. -- line height: 16
  5819. -- part name: stackscr
  5820. ----- HyperTalk script -----
  5821. on openStack
  5822.  
  5823.   go to first card
  5824.   put the number of cd buttons into x
  5825.   if x = 0 then
  5826.     put x into bg fld hidder
  5827.   end if
  5828. end openStack
  5829. on closeStack
  5830.   go to first card
  5831.   put the number of cd buttons into x
  5832.   if x = 0 then
  5833.     put x into bg fld hidder
  5834.   end if
  5835. end closeStack
  5836.  
  5837.  
  5838. -- part 2054 (field)
  5839. -- low flags: 80
  5840. -- high flags: 0000
  5841. -- rect: left=287 top=330 right=342 bottom=299
  5842. -- title width / last selected line: 0
  5843. -- icon id / first selected line: 0 / 0
  5844. -- text alignment: 0
  5845. -- font id: 3
  5846. -- text size: 12
  5847. -- style flags: 0
  5848. -- line height: 16
  5849. -- part name: deletestack
  5850. ----- HyperTalk script -----
  5851. on openStack
  5852.   put the long name of this stack into temp
  5853.   go to card "default"
  5854.   put FontName() into rss
  5855.   put rss into card fld fonttypes
  5856.   go to card build
  5857.   answer "Is this a new or old system" with "New" or "Old"
  5858.   if it is "New" then
  5859.     go to card "full"
  5860.     put card fld "ques1" into x
  5861.     if x is empty then
  5862.       go to card build
  5863.       answer "Click on Built Expert System to begin." with "OK"
  5864.       show card fld help
  5865.     else
  5866.       answer "There is already a system here" with "OK"
  5867.     end if
  5868.  
  5869.   end if
  5870.   if it is "Old" then
  5871.     go to card "full"
  5872.     put card fld "ques1" into x
  5873.     if x is empty then
  5874.       answer "There is no system to work on" with "OK"
  5875.       go to card build
  5876.       show card fld help
  5877.       answer "Click on Built Expert System to begin." with "OK"
  5878.     end if
  5879.  
  5880.   end if
  5881.  
  5882. end openStack
  5883. on closeStack
  5884.   domenu "compact stack"
  5885. end closeStack
  5886.  
  5887.  
  5888.  
  5889.  
  5890.  
  5891. -- part 2055 (field)
  5892. -- low flags: 81
  5893. -- high flags: 0007
  5894. -- rect: left=156 top=120 right=205 bottom=356
  5895. -- title width / last selected line: 0
  5896. -- icon id / first selected line: 0 / 0
  5897. -- text alignment: 0
  5898. -- font id: 3
  5899. -- text size: 12
  5900. -- style flags: 0
  5901. -- line height: 16
  5902. -- part name: card id 4043
  5903. ----- HyperTalk script -----
  5904. on mouseUp
  5905.   hide me
  5906. end mouseUp
  5907.  
  5908.  
  5909. -- part 2059 (button)
  5910. -- low flags: 00
  5911. -- high flags: A004
  5912. -- rect: left=410 top=317 right=339 bottom=512
  5913. -- title width / last selected line: 0
  5914. -- icon id / first selected line: 0 / 0
  5915. -- text alignment: 1
  5916. -- font id: 0
  5917. -- text size: 12
  5918. -- style flags: 0
  5919. -- line height: 16
  5920. -- part name: Home
  5921. ----- HyperTalk script -----
  5922. on mouseUp
  5923.   go home
  5924. end mouseUp
  5925.  
  5926.  
  5927.  
  5928. -- part 2120 (button)
  5929. -- low flags: 00
  5930. -- high flags: A004
  5931. -- rect: left=411 top=223 right=245 bottom=512
  5932. -- title width / last selected line: 0
  5933. -- icon id / first selected line: 0 / 0
  5934. -- text alignment: 1
  5935. -- font id: 0
  5936. -- text size: 12
  5937. -- style flags: 0
  5938. -- line height: 16
  5939. -- part name: Save System
  5940. ----- HyperTalk script -----
  5941. on mouseUp
  5942.   global savedscr, trag, exp, p, scr, pep, filename
  5943.   answer "Are you sure your finished?" with "OK" or "Cancel"
  5944.   if it is "Cancel" then exit mouseUp
  5945.  
  5946.  
  5947.   put the script of this stack into savedscr
  5948.   --set the script of this stack to ""
  5949.   put the long name of this stack into p
  5950.   put the long name of this stack into x
  5951.   put the number of characters in x into y
  5952.   put the script of card fld expertmenu into exp
  5953.   put the script of card fld stackscr into scr
  5954.   set the loc of msg box to 10,300
  5955.   put "Looking for ExpertMenu Stack" into msg box
  5956.   set cursor to watch
  5957.   repeat y times
  5958.     if character y of x = ":" then
  5959.       exit repeat
  5960.     else
  5961.       delete character y of x
  5962.     end if
  5963.     subtract 1 from y
  5964.     next repeat
  5965.   end repeat
  5966.   delete first word of x
  5967.   delete first character of x
  5968.  
  5969.   get Files(x)
  5970.   put it into scope
  5971.   put the number of words in scope into nm
  5972.  
  5973.   repeat nm times
  5974.     if word nm of scope = "ExpertMenu" then
  5975.       put 1 into trag
  5976.       exit repeat
  5977.  
  5978.     else
  5979.       put 2 into trag
  5980.  
  5981.     end if
  5982.     subtract 1 from nm
  5983.   end repeat
  5984.   put "WORKING" into msg
  5985.   foundfun
  5986.   if pep = 1 then
  5987.     set the script of this stack to savedscr
  5988.     exit mouseUp
  5989.   end if
  5990.  
  5991.  
  5992.   push card
  5993.  
  5994.   put card fld "ans count" into y
  5995.   put card fld "con count" into z
  5996.   add y to z
  5997.   go to card "ques1"
  5998.   put the number of this card into rtt
  5999.   set lockmessages to true
  6000.   hide msg
  6001.   answer "Choose a name for you Expert System" with "OK"
  6002.   answer "Click new when finished" with "OK"
  6003.   domenu "New Stack..."
  6004.   put "WORKING" into msg
  6005.   put the short name of this stack into testit
  6006.   if testit = "HyperExpert 2.0" then
  6007.     set the script of this stack to savedscr
  6008.     go to card full
  6009.     hide msg
  6010.     exit mouseUp
  6011.   end if
  6012.  
  6013.   put the long name of this stack into zzz
  6014.   set the script of this stack to "on openStack" &return&"go to card ques1" &return&"end openStack"
  6015.   pop card
  6016.   put the number of cards into xx
  6017.   subtract rtt from xx
  6018.   add 1 to xx
  6019.  
  6020.   repeat xx times
  6021.     set lockmessages to true
  6022.     go to card rtt
  6023.  
  6024.     domenu "copy card"
  6025.  
  6026.     go to zzz
  6027.     domenu "paste card"
  6028.  
  6029.     go p
  6030.     add 1 to rtt
  6031.  
  6032.   end repeat
  6033.  
  6034.  
  6035.  
  6036.   go p
  6037.   put cd fld "problem" of card "full" into pmm
  6038.   go to stack "ExpertMenu"
  6039.   repeat until bg fld hidder Γëá 5
  6040.     go to next card
  6041.   end repeat
  6042.  
  6043.   if bg fld "hidder" = 0 then
  6044.  
  6045.     choose field tool
  6046.     domenu "new field"
  6047.     set the style of card fld "" to scrolling
  6048.     set the rect of cd fld "" to 166,120,403,185
  6049.     set the loc of cd fld "" to 284,71
  6050.     put pmm into card fld ""
  6051.     set the lockText of cd fld "" to true
  6052.     set the name of cd fld "" to zzz
  6053.     choose button tool
  6054.     domenu "new button"
  6055.     set the rect of cd button "new button" to 69,277,163,305
  6056.     set the loc of cd button "new button" to 114,53
  6057.     set the style of cd button "new button" to shadow
  6058.     set the autoHilite of cd button "new button" to true
  6059.     set the script of card button "new button" to "on mouseUp" &return&"go to "&zzz &return&"end mouseUp"
  6060.     set the name of cd button "new button" to select
  6061.     hide bg fld hidder
  6062.   end if
  6063.   if bg fld "hidder" = 1 then
  6064.  
  6065.     choose field tool
  6066.     domenu "new field"
  6067.     set the style of card fld "" to scrolling
  6068.     set the rect of cd fld "" to 166,120,403,185
  6069.     set the loc of cd fld "" to 284,152
  6070.     put pmm into card fld ""
  6071.     set the lockText of cd fld "" to true
  6072.     set the name of cd fld "" to zzz
  6073.     choose button tool
  6074.     domenu "new button"
  6075.     set the rect of cd button "new button" to 69,277,163,305
  6076.     set the loc of cd button "new button" to 114,134
  6077.     set the style of cd button "new button" to shadow
  6078.     set the autoHilite of cd button "new button" to true
  6079.     set the script of card button "new button" to "on mouseUp" &return&"go to "&zzz &return&"end mouseUp"
  6080.     set the name of cd button "new button" to select
  6081.     hide bg fld hidder
  6082.   end if
  6083.   if bg fld "hidder" = 2 then
  6084.     choose field tool
  6085.     domenu "new field"
  6086.     set the style of card fld "" to scrolling
  6087.     set the rect of cd fld "" to 166,120,403,185
  6088.     set the loc of cd fld "" to 284,231
  6089.     put pmm into card fld ""
  6090.     set the lockText of cd fld "" to true
  6091.     set the name of cd fld "" to zzz
  6092.     choose button tool
  6093.     domenu "new button"
  6094.     set the rect of cd button "new button" to 69,277,163,305
  6095.     set the loc of cd button "new button" to 114,213
  6096.     set the style of cd button "new button" to shadow
  6097.     set the autoHilite of cd button "new button" to true
  6098.     set the script of card button "new button" to "on mouseUp" &return&"go to "&zzz &return&"end mouseUp"
  6099.     set the name of cd button "new button" to select
  6100.     hide bg fld hidder
  6101.   end if
  6102.   if bg fld "hidder" = 3 then
  6103.     choose field tool
  6104.     domenu "new field"
  6105.     set the style of card fld "" to scrolling
  6106.     set the rect of cd fld "" to 166,120,403,185
  6107.     set the loc of cd fld "" to 284,309
  6108.     put pmm into card fld ""
  6109.     set the lockText of cd fld "" to true
  6110.     set the name of cd fld "" to zzz
  6111.     choose button tool
  6112.     domenu "new button"
  6113.     set the rect of cd button "new button" to 69,277,163,305
  6114.     set the loc of cd button "new button" to 114,291
  6115.     set the style of cd button "new button" to shadow
  6116.     set the autoHilite of cd button "new button" to true
  6117.     set the script of card button "new button" to "on mouseUp" &return&"go to "&zzz &return&"end mouseUp"
  6118.     set the name of cd button "new button" to select
  6119.     hide bg fld hidder
  6120.   end if
  6121.  
  6122.   if bg fld "hidder" = 4 then
  6123.  
  6124.     add 1 to bg fld hidder
  6125.     domenu "new card"
  6126.     choose field tool
  6127.     domenu "new field"
  6128.     set the name of cd fld "" to hidder
  6129.     choose field tool
  6130.     domenu "new field"
  6131.     set the style of card fld "" to scrolling
  6132.     set the rect of cd fld "" to 166,120,403,185
  6133.     set the loc of cd fld "" to 284,71
  6134.     put pmm into card fld ""
  6135.     set the lockText of cd fld "" to true
  6136.     set the name of cd fld "" to zzz
  6137.     choose button tool
  6138.     domenu "new button"
  6139.     set the rect of cd button "new button" to 69,277,163,305
  6140.     set the loc of cd button "new button" to 114,53
  6141.     set the style of cd button "new button" to shadow
  6142.     set the autoHilite of cd button "new button" to true
  6143.     set the script of card button "new button" to "on mouseUp" &return&"go to "&zzz &return&"end mouseUp"
  6144.     set the name of cd button "new button" to select
  6145.     hide bg fld hidder
  6146.   end if
  6147.   if bg fld "hidder" is empty then
  6148.     put 0 into bg fld "hidder"
  6149.   else
  6150.  
  6151.     add 1 to bg fld "hidder"
  6152.   end if
  6153.  
  6154.  
  6155.  
  6156.   go p
  6157.   go to card "full"
  6158.  
  6159.   hide msg
  6160.   answer "Are you finished with this system" with "OK" or "CANCEL"
  6161.   if it is "CANCEL" then
  6162.     choose browse tool
  6163.     set the script of this stack to savedscr
  6164.     exit mouseUp
  6165.   end if
  6166.  
  6167.   answer "This will clean out the tree" with "CANCEL" or "OK"
  6168.  
  6169.   if it is "CANCEL" then
  6170.     choose browse tool
  6171.     set the script of this stack to savedscr
  6172.     exit mouseUp
  6173.   end if
  6174.   put "WORKING" into msg
  6175.   set the script of this stack to savedscr
  6176.  
  6177.  
  6178.   put empty into card fld "ans count"
  6179.  
  6180.   put empty into card fld "con count"
  6181.   put empty into card fld "cd count"
  6182.   put empty into card fld yes1
  6183.  
  6184.  
  6185.   put empty into card fld yes2
  6186.   put empty into card fld yes3
  6187.   put empty into card fld yes4
  6188.   put empty into card fld yes5
  6189.   put empty into card fld yes6
  6190.   put empty into card fld yes7
  6191.   put empty into card fld no1
  6192.   put empty into card fld no2
  6193.   put empty into card fld no3
  6194.   put empty into card fld no4
  6195.   put empty into card fld no5
  6196.   put empty into card fld no6
  6197.   put empty into card fld no7
  6198.   put empty into card fld ques1
  6199.  
  6200.   put empty into card fld ques2
  6201.   put empty into card fld ques3
  6202.   put empty into card fld ques4
  6203.   put empty into card fld ques5
  6204.   put empty into card fld ques6
  6205.   put empty into card fld ques7
  6206.   put empty into card fld label1
  6207.  
  6208.   put empty into card fld label2
  6209.   put empty into card fld label3
  6210.   put empty into card fld label4
  6211.   put empty into card fld label5
  6212.   put empty into card fld label6
  6213.   put empty into card fld label7
  6214.  
  6215.   put empty into card fld no4fld
  6216.   put empty into card fld no5fld
  6217.   put empty into card fld no6fld
  6218.   put empty into card fld no7fld
  6219.  
  6220.  
  6221.   put empty into card fld yes4fld
  6222.   put empty into card fld yes5fld
  6223.   put empty into card fld yes6fld
  6224.   put empty into card fld yes7fld
  6225.   put empty into card fld dqcount
  6226.   put empty into card fld dccount
  6227.   put empty into cd fld problem
  6228.  
  6229.   choose button tool
  6230.   put 7 into y
  6231.  
  6232.   put the number of card buttons into x
  6233.   subtract 6 from x
  6234.   repeat x times
  6235.     select card button y
  6236.     domenu "clear button"
  6237.   end repeat
  6238.   choose field tool
  6239.   put 53 into y
  6240.  
  6241.   put the number of card fields into x
  6242.   subtract 52 from x
  6243.   repeat x times
  6244.     show card fld y
  6245.     select card fld y
  6246.     domenu "clear field"
  6247.   end repeat
  6248.   repeat with x = 1 to the number of cards
  6249.     go to card ques1
  6250.     put the short name of this card into x
  6251.     if x = "Build" or x = "full" or x = "fulltoo" or x = "default" then
  6252.  
  6253.       go to next card
  6254.     else
  6255.       domenu "delete card"
  6256.     end if
  6257.   end repeat
  6258.  
  6259.  
  6260.   choose browse tool
  6261.  
  6262.  
  6263.  
  6264.  
  6265.  
  6266.   go to card build
  6267.   set lockmessages to false
  6268.  
  6269.   hide msg
  6270.   answer "Click on Build Expert System to start again"
  6271. end mouseUp
  6272. on foundfun
  6273.   global trag, exp, savedscr, p, scr, fileName
  6274.   hide msg box
  6275.   if trag = 2 then
  6276.     answer "Cant find stack ExpertMenu, must make new one"
  6277.     set lockmessages to true
  6278.     put newFileName("Click on the Save button","ExpertMenu") into fileName
  6279.     newStack fileName
  6280.     go stack fileName
  6281.     put the short name of this stack into nam
  6282.     put the long name of this stack into namer
  6283.     delete first word of namer
  6284.     delete first character of namer
  6285.     delete last character of namer
  6286.     if nam Γëá "ExpertMenu" then
  6287.       answer "It must be named ExpertMenu (one word)" with "Silly me"
  6288.       go p
  6289.       put 1 into pep
  6290.       exit foundfun
  6291.  
  6292.     end if
  6293.  
  6294.  
  6295.     domenu "Background"
  6296.     choose button tool
  6297.     domenu "new button"
  6298.     set the rect of bg button "new button" to 444,294,504,331
  6299.     set the loc of bg button "new button" to 474,312
  6300.     set the style of bg btn "new button" to transparent
  6301.     set the autoHilite of bg btn "new button" to true
  6302.     set the showName of bg btn "new button" to false
  6303.     set the icon of bg button "new button" to "Lge Next Arrow"
  6304.     set the script of bg btn "new button" to "on mouseUp" &return&"go to next card" &return&"end mouseUp"
  6305.     set the name of bg button "new button" to "Next"
  6306.  
  6307.     domenu "New Button"
  6308.     set the rect of bg button "New button" to 0,29,46,48
  6309.     set the loc of bg button "New button" to 23,38
  6310.     set the style of bg btn "New button" to shadow
  6311.     set the script of bg btn "New button" to exp
  6312.     set the name of bg btn "New button" to "Edit"
  6313.  
  6314.     domenu "New Button"
  6315.     set the rect of bg button "New button" to 0,29,46,48
  6316.     set the loc of bg button "New button" to 21,331
  6317.     set the style of bg btn "New button" to shadow
  6318.     set the script of bg btn "New button" to "on mouseUp"&return& "domenu ""e&"quit hypercard""e&return&"end mouseUp"
  6319.  
  6320.     set the name of bg btn "New button" to "Quit"
  6321.  
  6322.     choose text tool
  6323.     set the textAlign to left
  6324.     set the textFont to Geneva
  6325.     set the textSize to 12
  6326.     set the textStyle to bold, shadow, outline
  6327.     click at 10,13
  6328.     type "HyperExpert Menu"
  6329.     click at 412,49
  6330.     set the textStyle to plain
  6331.     set the textSize to 9
  6332.     put 1 into lil
  6333.     put 49 into plc
  6334.     repeat 4 times
  6335.       click at 412,plc
  6336.       type "Edit ID Number: "&lil
  6337.       add 1 to lil
  6338.       add 81 to plc
  6339.     end repeat
  6340.     choose line tool
  6341.     set the lineSize to 1
  6342.     click at 0,20
  6343.     drag from 0,20 to 511,20
  6344.     set the lineSize to 2
  6345.     drag from 0,23 to 511,23
  6346.     choose field tool
  6347.     domenu "New Field"
  6348.     set the name of bg fld "" to "hidder"
  6349.     put 0 into bg fld "hidder"
  6350.     hide bg fld hidder
  6351.     domenu "Background"
  6352.     set the script of this stack to scr
  6353.     go p
  6354.     put the long name of this stack into thisname
  6355.     delete first word of thisname
  6356.     delete first character of thisname
  6357.     delete last character of thisname
  6358.     ResCopy thisname,namer,XFCN,345
  6359.   else
  6360.     exit foundfun
  6361.   end if
  6362. end foundfun
  6363.  
  6364.  
  6365.  
  6366.  
  6367.  
  6368. -- part 2036 (field)
  6369. -- low flags: 81
  6370. -- high flags: 0007
  6371. -- rect: left=0 top=0 right=342 bottom=512
  6372. -- title width / last selected line: 0
  6373. -- icon id / first selected line: 0 / 0
  6374. -- text alignment: 0
  6375. -- font id: 3
  6376. -- text size: 12
  6377. -- style flags: 0
  6378. -- line height: 16
  6379. -- part name: help
  6380. ----- HyperTalk script -----
  6381. on mouseUp
  6382.   hide me
  6383. end mouseUp
  6384.  
  6385.  
  6386.  
  6387.  
  6388. -- part contents for card part 328
  6389. ----- text -----
  6390. This is six
  6391.  
  6392. -- part contents for card part 2036
  6393. ----- text -----
  6394. HyperExpert Help - click on field to close it
  6395.  
  6396. ***Load this stack onto your Hard disk or it will run very slow if you don't. Use HyperCard and not SuperCard. I have experienced some problems with this stack  while using SuperCard.***
  6397.  
  6398. *************For those of you who can't wait to get started.************
  6399.  
  6400.      Step 1 - First click on the button "Build Expert System"
  6401.      Step 2 - It will ask you to define the problem to be worked on. This is the  
  6402.                    problem that the end users are having. For Example - My car wont                    
  6403.                    start. Common questions or problems which get asked frequently
  6404.                    is one way to think of it.
  6405.      Step 3 - Set Defaults. The HyperExpert Stack is designed to make setting 
  6406.                    up your system as quick and easy as possible. The defaults are 
  6407.                    so you can set your cards how you want them to look one time, 
  6408.                    and then you wont have to do it again. Like all Yes-No questions.
  6409.      Step 4 - After setting defaults you will have to click on the "Build Expert    
  6410.                    System" button again to get started.
  6411.       Step 5 - Now you start your questioning to come to a conclusion about 
  6412.                     the problem. For example, if your problem is "My car wont start"        
  6413.                     then a good first question would be "Did you check the gas tank".
  6414.                     You enter it in the proper field and click finished when done.
  6415.       Step 6 - Now your at the tree portion of the stack. IF YOU CLICK ON THE 
  6416.                     QUESTION 1 BOX YOU CAN SEE THE QUESTION YOU JUST TYPED. You
  6417.                     can also see the answers you have assigned for Question 1
  6418.                     (i.e Yes, No). Now click on the answer to the question you
  6419.                    would like to work with next. For example - your question was 
  6420.                    "Did you check the gas tank" and if they 
  6421.                     answer "No" you want to reach a conclusion at that point.
  6422.                     So click on the "No" answer box next to the box labeled 
  6423.                     Question 1.
  6424.       Step 7 - After clicking on the "No" box of Question 1 HyperExpert will ask
  6425.                     if you want a question or a conclusion. If you choose 
  6426.                     conclusion, HyperExpert will ask you if you want the conclusion
  6427.                     to go to another question. For example you might have another 
  6428.                     question you might want to ask even though you have reached 
  6429.                     one conclusion already. Simply enter the question number here.
  6430.       Step 8 - Now type your conclusion, like "You should check your gas tank" 
  6431.                     click finished when done.
  6432.       Step 9 - Now if your satisfied with all of your questions and conclusions
  6433.                     click "Save System" and HyperExpert will begin to look for 
  6434.                     the stack "ExpertMenu". If this is the first time you have used 
  6435.                     HyperExpert it will not find the stack and will ask you to make a 
  6436.                     new one. When the new stack window comes up click save and
  6437.                     dont change the name of the stack. You also need to name your
  6438.                     question stacks. You may call these whatever you like. These
  6439.                     are the stacks that the ExpertMenu Stack references.  
  6440.     Step 10 - Your finished. Now give the ExpertMenu stack 
  6441.                     and the question stacks you created to the people who need your
  6442.                     expertise. This may have sounded like a lot of steps but
  6443.                     after using this stack once or twice it becomes very intuitive.
  6444.                     Remember you can make the system as big as the memory and
  6445.                     disk space of your own Mac will allow.
  6446.                     You keep the HyperExpert Shell Stack for creating other systems.
  6447.     
  6448.                     **A word of advise, make sure all of your questions eventually
  6449.                         end with a conclusion, or your users may end up going down
  6450.                         a path to no conclusion.
  6451.  
  6452.                     **Note there is an edit button included on the ExpertMenu Stack.
  6453.                         This allows anyone to remove the files you have created. You
  6454.                         may want to remove this button, but it is up to you. It is 
  6455.                         primarily for your use.
  6456.  
  6457.  
  6458.                                               **Button Functions**
  6459.  
  6460. **Build Expert System**
  6461.  
  6462. Obviously is the first button you click on to get the process of building your system started.
  6463.  
  6464. **Clear Tree**
  6465.  
  6466. This button clears out the tree and the question cards that you have created. It is to be used if you have already saved the system or made some type of error that made it necessary to get rid of the entire system.
  6467.  
  6468. **Default Settings**
  6469.  
  6470. This button takes you to the area where you can decide what type of default settings you would like to have for your individual question cards
  6471.  
  6472. **Edit**
  6473.  
  6474. This button allows you to edit a question after you have created it. If the question is in the middle of the tree (i.e. there are other questions after it), then a replacement question must be created. If the question is at the end of the tree and there are no other questions after it, then it can be delete without having to replace the question.
  6475.      There is an edit button on the ExpertMenu stack. It will delete the question stack of your choice. You may decide to remove this button before you give it to your end users. Its up to you.
  6476.  
  6477. **Set Answer Types**
  6478.  
  6479. This is a popup menu which gives you a choice of answer types to set as a default. For example -- Yes-No, True-False. After setting this default all of your answer types will be of this kind. Notice there is a Variable answer type for answers which don't fit into one of the given categories.
  6480.  
  6481. **Set Button Types**
  6482.  
  6483. This is a popup menu which gives you the standard Hypercard choices for button types.
  6484.  
  6485. **Set Font Size** 
  6486.  
  6487. This is a popup menu which sets the font size of the field containing your answer or question.
  6488.  
  6489. **Set Font Types**
  6490.  
  6491. This is a list menu generated by the Dolist XCMD.  It loads all the fonts you have available in your system and gives you the choice of which font you want to use for the field your question or conclusion is contained. 
  6492.  
  6493. **Set Text Align**
  6494.  
  6495. This is a popup menu which allows you to choose a type of alignment (left, right, center) for the field which contains your question or conclusion.
  6496.  
  6497. **Save System**
  6498.  
  6499. This button saves your questions and conclusions to a separate stack. It will prompt you to name your stack and if you have not created an ExpertMenu stack you will be prompted to do that as well. 
  6500.  
  6501.                                            **Field Information**
  6502.  
  6503. **Deleted Conclusions**
  6504.  
  6505. This field shows the conclusion numbers you have deleted. HyperExpert re-uses these numbers until the field contains a zero and then it starts numbering from the last conclusion.
  6506.  
  6507. **Deleted Questions**
  6508.  
  6509. This field shows the question numbers you have deleted. HyperExpert re-uses these numbers until the field contains a zero and then it starts numbering from the last question.
  6510.  
  6511. **Name of Problem**
  6512.  
  6513. Obviously this is the name of the problem you defined in the beginning.
  6514.  
  6515. **Total Cards**
  6516.  
  6517. This is the total number of TREE cards. For instance if you fill up the tree card will all seven questions then add an eighth question, you would then be starting another tree card, so at that point you would have 2 tree cards or 2 total cards.
  6518.  
  6519. **Total Questions**
  6520.  
  6521. This is the total number of questions not counting conclusions.
  6522.  
  6523. **Total Conclusions**
  6524.  
  6525. This is the total number of conclusions not counting questions.
  6526.  
  6527.  
  6528.  
  6529. -- part contents for card part 2055
  6530. ----- text -----
  6531. did you check the gas